refactor(registry): 生产环境数据库访问迁移至 SQLx 并统一测试端口策略 将 rusqlite 从生产依赖移至 dev-dependencies,正式数据库操作全部 由 SQLx 完成;rusqlite 仅保留用于测试夹具及旧数据库兼容验证。 UI 验收脚本移除 HTTP 代理和动态端口分配,统一通过 ui-test-port.mjs 的 assertUiPortAvailable 直连 8787 端口, 确保测试与正式实例串行执行。 新增 doc/registry/rust/axum-sqlx-architecture.md 记录模块职责、 数据兼容、退出资源回收及验证维护规范。 修复接收器页面按钮缺少显式 height 导致的布局偏差。 ```
45 lines
1.4 KiB
TOML
45 lines
1.4 KiB
TOML
[package]
|
|
name = "fpv-rid-registry"
|
|
version = "3.0.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "fpv-rid-registry-fullstack"
|
|
path = "src/main.rs"
|
|
|
|
[workspace]
|
|
members = ["crates/rid-shared", "crates/realtime-core", "crates/web-ui", "crates/web-worker", "xtask"]
|
|
default-members = [".", "crates/rid-shared", "crates/realtime-core", "xtask"]
|
|
resolver = "2"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.8", features = ["ws"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "signal", "sync", "time", "io-util"] }
|
|
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"] }
|
|
sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "sqlite-bundled"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
base64 = "0.22"
|
|
rand = "0.9"
|
|
chrono = "0.4"
|
|
zip = { version = "4", default-features = false, features = ["deflate"] }
|
|
rust_xlsxwriter = "0.90"
|
|
fs2 = "0.4"
|
|
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"
|
|
futures-util = { version = "0.3", features = ["sink"] }
|
|
|
|
[profile.release]
|
|
lto = true
|
|
strip = true
|
|
codegen-units = 1
|