规范依赖管理并适配 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:
+27
-9
@@ -8,19 +8,19 @@ vnt-ipc = { path = "vnt-ipc", optional = true }
|
||||
vnt-web = { path = "vnt-web", optional = true }
|
||||
clap = { version = "4.5", features = ["derive"] }
|
||||
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tokio = { workspace = true, features = ["full"] }
|
||||
|
||||
|
||||
log = "0.4"
|
||||
log.workspace = true
|
||||
log4rs = "1.4"
|
||||
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
anyhow = "1.0.100"
|
||||
toml = "0.9.8"
|
||||
hostname = "0.4.2"
|
||||
ipnet = { version = "2.11", features = ["serde"] }
|
||||
serde.workspace = true
|
||||
anyhow.workspace = true
|
||||
toml.workspace = true
|
||||
hostname.workspace = true
|
||||
ipnet.workspace = true
|
||||
|
||||
route_manager = "0.2.11"
|
||||
route_manager.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
@@ -45,13 +45,31 @@ required-features = ["vnt-web"]
|
||||
[workspace]
|
||||
members = ["vnt-web", "vnt-ipc", "vnt-core", "vnt-jni"]
|
||||
|
||||
[workspace.dependencies]
|
||||
vnt-core = { path = "vnt-core" }
|
||||
|
||||
tokio = "1"
|
||||
tokio-util = "0.7"
|
||||
futures = "0.3"
|
||||
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
anyhow = "1"
|
||||
log = "0.4"
|
||||
toml = "0.9"
|
||||
time = "0.3"
|
||||
hostname = "0.4"
|
||||
ipnet = { version = "2.11", features = ["serde"] }
|
||||
route_manager = "0.2"
|
||||
parking_lot = "0.12"
|
||||
prost = "0.14"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 'z'
|
||||
debug = 0
|
||||
debug-assertions = false
|
||||
strip = true
|
||||
lto = true
|
||||
panic = 'abort'
|
||||
incremental = false
|
||||
codegen-units = 1
|
||||
rpath = false
|
||||
|
||||
Reference in New Issue
Block a user