refactor(registry): 生产环境数据库访问迁移至 SQLx 并统一测试端口策略

将 rusqlite 从生产依赖移至 dev-dependencies,正式数据库操作全部
由 SQLx 完成;rusqlite 仅保留用于测试夹具及旧数据库兼容验证。

UI 验收脚本移除 HTTP 代理和动态端口分配,统一通过
ui-test-port.mjs 的 assertUiPortAvailable 直连 8787 端口,
确保测试与正式实例串行执行。

新增 doc/registry/rust/axum-sqlx-architecture.md 记录模块职责、
数据兼容、退出资源回收及验证维护规范。

修复接收器页面按钮缺少显式 height 导致的布局偏差。
```
This commit is contained in:
2026-10-27 20:04:34 +08:00
parent a68dc50798
commit 281af4fe3d
42 changed files with 2435 additions and 1301 deletions
+1 -1
View File
@@ -19,7 +19,6 @@ tokio-serial = { version = "=5.5.0", default-features = false }
rid-shared = { path = "crates/rid-shared" }
realtime-core = { path = "crates/realtime-core" }
postcard = { version = "1", features = ["alloc"] }
rusqlite = { version = "0.38", features = ["bundled", "backup"] }
sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "sqlite-bundled"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
@@ -33,6 +32,7 @@ regex = "1"
reqwest = { version = "=0.13.5", default-features = false, features = ["native-tls", "query", "system-proxy"] }
[dev-dependencies]
rusqlite = { version = "0.38", features = ["bundled", "backup"] }
tempfile = "3"
tower = { version = "0.5", features = ["util"] }
tokio-tungstenite = "0.29"