mirror of
https://github.com/dndx/phantun.git
synced 2025-09-06 23:37:28 +08:00
chore(cargo): bump to Rust edition 2024 and move shared dependency into
workspace `Cargo.toml`
This commit is contained in:
parent
2a37a2fc92
commit
86133609da
@ -1,8 +1,11 @@
|
||||
[workspace]
|
||||
|
||||
resolver = "2"
|
||||
resolver = "3"
|
||||
|
||||
members = [
|
||||
"fake-tcp",
|
||||
"phantun",
|
||||
]
|
||||
|
||||
[workspace.dependencies]
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
log = "0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "fake-tcp"
|
||||
version = "0.6.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
authors = ["Datong Sun <dndx@idndx.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/dndx/phantun"
|
||||
@ -17,9 +17,9 @@ benchmark = []
|
||||
[dependencies]
|
||||
bytes = "1"
|
||||
pnet = "0"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
rand = { version = "0", features = ["small_rng"] }
|
||||
log = "0"
|
||||
internet-checksum = "0"
|
||||
tokio-tun = "0"
|
||||
flume = "0"
|
||||
tokio = { workspace = true }
|
||||
log = { workspace = true }
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "phantun"
|
||||
version = "0.7.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
authors = ["Datong Sun <dndx@idndx.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/dndx/phantun"
|
||||
@ -14,11 +14,11 @@ Layer 3 & Layer 4 (NAPT) firewalls/NATs.
|
||||
clap = { version = "4", features = ["cargo"] }
|
||||
socket2 = { version = "0", features = ["all"] }
|
||||
fake-tcp = { path = "../fake-tcp", version = "0" }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tokio-util = "0"
|
||||
log = "0"
|
||||
pretty_env_logger = "0"
|
||||
tokio-tun = "0"
|
||||
num_cpus = "1"
|
||||
neli = "0"
|
||||
nix = { version = "0", features = ["net"] }
|
||||
tokio = { workspace = true }
|
||||
log = { workspace = true }
|
||||
|
Loading…
x
Reference in New Issue
Block a user