规范依赖管理并适配 rand 0.10

- tcp_ip 从 git 依赖切换为 crates.io 0.2(IpStackConfig 改用 builder)
- 公共依赖收拢到 workspace.dependencies 统一版本
- 移除 release profile 的 panic=abort(避免 vnt-jni 中止宿主 JVM)
- vnt-jni 升级 edition 2024(no_mangle 改为 unsafe(no_mangle))
- vnt-ipc 显式声明 tokio features
- 适配 rand 0.10:random_range 移至 RngExt,choose_multiple 改名 sample
- 修复 clippy 警告(type_complexity/collapsible_if/ptr_arg)
This commit is contained in:
lbl
2026-08-20 20:58:07 +08:00
parent e088d305b1
commit 7d481560e3
14 changed files with 258 additions and 162 deletions
+13 -13
View File
@@ -4,20 +4,20 @@ version = "2.0.0"
edition = "2024"
[dependencies]
vnt-core = { path = "../vnt-core" }
tokio = { version = "1", features = ["full"] }
vnt-core.workspace = true
tokio = { workspace = true, features = ["full"] }
axum = "0.8.8"
tower-http = { version = "0.6", features = ["fs", "cors", "trace"] }
tower-http = { version = "0.7", features = ["fs", "cors", "trace"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0.100"
log = "0.4.29"
ipnet = "2.11.0"
hostname = "0.4.2"
route_manager = "0.2.11"
toml = "0.9.8"
serde.workspace = true
serde_json.workspace = true
anyhow.workspace = true
log.workspace = true
ipnet.workspace = true
hostname.workspace = true
route_manager.workspace = true
toml.workspace = true
rust-embed = "8.0"
mime_guess = "2.0"
parking_lot = "0.12"
time = { version = "0.3.45", features = ["local-offset", "formatting", "macros"] }
parking_lot.workspace = true
time = { workspace = true, features = ["local-offset", "formatting", "macros"] }