- 在 Cargo.toml 中为 Windows 平台添加 windows-sys 依赖,版本为 0.52,包含 Win32_Foundation 和 Win32_System_Registry 特性。 - 更新相关 CSS 文件以改善界面样式,确保在不同主题下的视觉一致性。 - 在 JavaScript 文件中实现围栏标记的绘制和管理功能,增强地图交互体验。
48 lines
1.6 KiB
TOML
48 lines
1.6 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"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.52", features = ["Win32_Foundation", "Win32_System_Registry"] }
|
|
|
|
[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
|