sdlan-lib-rs/Cargo.toml

61 lines
1.4 KiB
TOML
Executable File

[package]
name = "punchnet"
version = "1.0.0"
edition = "2021"
[dependencies]
crc = "3.2.1"
crc32fast = "1.4.2"
dashmap = "6.0.1"
dns-lookup = "2.0.4"
etherparse = "0.15.0"
futures-util = "0.3.30"
local-ip-address = "0.6.1"
num_enum = "0.7.2"
once_cell = "1.19.0"
openssl-sys = { version = "0.9.111", features = ["vendored"] }
prost = "0.12.6"
prost-build = "0.12.6"
rand = "0.8.5"
reqwest = { version = "0.12.24", features = ["json"] }
rsa = "0.9.6"
# sdlan-sn-rs = { git = "ssh://git@git2.asxalex.pw/sdlan-v2/sdlan-rs.git" }
sdlan-sn-rs = {git = "https://gitea.s5s8.com/punchnet/sdlan-rs.git"}
serde = { version = "1.0.228", features = ["derive"] }
# sdlan-sn-rs = {path = "../sdlan-rs"}
# sdlan-sn-rs = { git = "https://git.asxalex.pw/sdlan-v2/sdlan-rs.git" }
structopt = "0.3.26"
tokio = { version = "1.38.0", features = ["full"] }
tokio-util = "0.7.11"
tracing = "0.1.40"
# rolling-file = { path = "../rolling-file" }
[target.'cfg(unix)'.dependencies]
libc = "0.2.178"
[target.'cfg(windows)'.dependencies]
wintun = "0.4.0"
winapi = "0.3.9"
[features]
tun = []
[build-dependencies]
cargo-deb = "3.6.2"
[package.metadata.deb]
maintainer = "alex <asxalex@163.com>"
copyright = "2025, alex"
# license-file = ["MIT"]
depends = "$auto"
## assets
assets = [
# executable
["target/release/punchnet", "usr/local/punchnet/punchnet", "755"],
# lib
["libtuntap.so", "usr/lib/", "755"],
]
maintainer-scripts = "debian"