Files
vnt/vnt-core/Cargo.toml
T
lbl 7d481560e3 规范依赖管理并适配 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)
2026-08-20 20:58:07 +08:00

58 lines
1.4 KiB
TOML

[package]
name = "vnt-core"
version = "2.0.0"
edition = "2024"
[dependencies]
tokio = { workspace = true, features = ["full"] }
tokio-util = { workspace = true, features = ["codec"] }
futures.workspace = true
tun-rs = { version = "2", features = ["async", "async_framed"] }
rust-p2p-core = { version="0.4" }
tcp_ip = "0.2"
anyhow.workspace = true
parking_lot.workspace = true
quinn = { version = "0.11", default-features = false, features = ["rustls", "runtime-tokio"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
rustls = { version = "0.23", default-features = false, features = ["ring"] }
hex = "0.4"
sha2 = "0.11"
rustls-native-certs = "0.8.2"
log.workspace = true
bytes = "1.11.0"
rand = "0.10"
time = { workspace = true, features = ["macros", "formatting", "local-offset"] }
pnet_packet = "0.35"
ring = "0.17.14"
prost.workspace = true
tokio-tungstenite = "0.30"
tungstenite = "0.30"
uuid = { version = "1.18.1", features = ["v4"] }
ipnet.workspace = true
getifaddrs = "0.6.0"
dns-parser = "0.8"
lz4_flex = "0.14"
reed-solomon-erasure = "6.0"
serde.workspace = true
rcgen = "0.14.6"
machine-uid = "0.5.4"
zerocopy = { version = "0.8.31", features = ["derive"] }
socket2 = { version = "0.6.1", features = ["all"] }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3.9", features = ["winreg"] }
widestring = "1.2"
[build-dependencies]
prost-build = "0.14"