2024-04-04 10:33:53 +08:00
|
|
|
[package]
|
|
|
|
name = "easytier"
|
|
|
|
description = "A full meshed p2p VPN, connecting all your devices in one network with one command."
|
2024-08-03 13:31:23 +08:00
|
|
|
homepage = "https://github.com/EasyTier/EasyTier"
|
|
|
|
repository = "https://github.com/EasyTier/EasyTier"
|
2024-10-08 22:01:15 +08:00
|
|
|
version = "2.0.2"
|
2024-04-04 10:33:53 +08:00
|
|
|
edition = "2021"
|
|
|
|
authors = ["kkrainbow"]
|
|
|
|
keywords = ["vpn", "p2p", "network", "easytier"]
|
|
|
|
categories = ["network-programming", "command-line-utilities"]
|
2024-09-14 11:40:46 +08:00
|
|
|
rust-version = "1.77.0"
|
2024-04-04 10:33:53 +08:00
|
|
|
license-file = "LICENSE"
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "easytier-core"
|
|
|
|
path = "src/easytier-core.rs"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "easytier-cli"
|
|
|
|
path = "src/easytier-cli.rs"
|
|
|
|
test = false
|
|
|
|
|
2024-04-06 22:44:30 +08:00
|
|
|
[lib]
|
|
|
|
name = "easytier"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
test = false
|
|
|
|
|
2024-04-04 10:33:53 +08:00
|
|
|
[dependencies]
|
2024-09-18 22:25:47 +08:00
|
|
|
git-version = "0.3.9"
|
|
|
|
|
2024-04-04 10:33:53 +08:00
|
|
|
tracing = { version = "0.1", features = ["log"] }
|
|
|
|
tracing-subscriber = { version = "0.3", features = [
|
|
|
|
"env-filter",
|
|
|
|
"local-time",
|
|
|
|
"time",
|
|
|
|
] }
|
|
|
|
tracing-appender = "0.2.3"
|
|
|
|
thiserror = "1.0"
|
|
|
|
auto_impl = "1.1.0"
|
|
|
|
crossbeam = "0.8.4"
|
|
|
|
time = "0.3"
|
|
|
|
toml = "0.8.12"
|
2024-06-04 23:06:10 +08:00
|
|
|
chrono = { version = "0.4.37", features = ["serde"] }
|
2024-04-04 10:33:53 +08:00
|
|
|
|
2024-08-07 21:27:38 +08:00
|
|
|
gethostname = "0.5.0"
|
2024-04-04 10:33:53 +08:00
|
|
|
|
2024-04-25 23:25:37 +08:00
|
|
|
futures = { version = "0.3", features = ["bilock", "unstable"] }
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
tokio-stream = "0.1"
|
2024-09-18 21:55:28 +08:00
|
|
|
tokio-util = { version = "0.7.9", features = ["codec", "net", "io"] }
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
async-stream = "0.3.5"
|
|
|
|
async-trait = "0.1.74"
|
|
|
|
|
2024-08-07 21:27:38 +08:00
|
|
|
dashmap = "6.0"
|
2024-04-04 10:33:53 +08:00
|
|
|
timedmap = "=1.0.1"
|
|
|
|
|
2024-04-24 23:12:46 +08:00
|
|
|
# for full-path zero-copy
|
|
|
|
zerocopy = { version = "0.7.32", features = ["derive", "simd"] }
|
|
|
|
bytes = "1.5.0"
|
|
|
|
pin-project-lite = "0.2.13"
|
|
|
|
atomicbox = "0.4.0"
|
2024-08-07 21:27:38 +08:00
|
|
|
tachyonix = "0.3.0"
|
2024-04-24 23:12:46 +08:00
|
|
|
|
2024-05-11 22:46:23 +08:00
|
|
|
quinn = { version = "0.11.0", optional = true, features = ["ring"] }
|
|
|
|
rustls = { version = "0.23.0", features = [
|
|
|
|
"ring",
|
|
|
|
], default-features = false, optional = true }
|
2024-05-03 07:55:00 +08:00
|
|
|
rcgen = { version = "0.11.1", optional = true }
|
2024-04-24 23:12:46 +08:00
|
|
|
|
2024-05-11 22:46:23 +08:00
|
|
|
# for websocket
|
2024-08-07 21:27:38 +08:00
|
|
|
tokio-websockets = { version = "0.8", optional = true, features = [
|
2024-05-11 22:46:23 +08:00
|
|
|
"rustls-webpki-roots",
|
|
|
|
"client",
|
|
|
|
"server",
|
|
|
|
"fastrand",
|
|
|
|
"ring",
|
|
|
|
] }
|
|
|
|
http = { version = "1", default-features = false, features = [
|
|
|
|
"std",
|
|
|
|
], optional = true }
|
|
|
|
tokio-rustls = { version = "0.26", default-features = false, optional = true }
|
|
|
|
|
2024-04-04 10:33:53 +08:00
|
|
|
# for tap device
|
2024-08-07 21:27:38 +08:00
|
|
|
tun = { package = "tun-easytier", version = "1.1.1", features = [
|
|
|
|
"async",
|
|
|
|
], optional = true }
|
2024-04-04 10:33:53 +08:00
|
|
|
# for net ns
|
|
|
|
nix = { version = "0.27", features = ["sched", "socket", "ioctl"] }
|
|
|
|
|
|
|
|
uuid = { version = "1.5.0", features = [
|
|
|
|
"v4",
|
|
|
|
"fast-rng",
|
|
|
|
"macro-diagnostics",
|
|
|
|
"serde",
|
|
|
|
] }
|
|
|
|
|
|
|
|
# for ring tunnel
|
|
|
|
crossbeam-queue = "0.3"
|
|
|
|
once_cell = "1.18.0"
|
|
|
|
|
|
|
|
# for rpc
|
2024-08-07 21:27:38 +08:00
|
|
|
prost = "0.13"
|
2024-09-18 21:55:28 +08:00
|
|
|
prost-types = "0.13"
|
2024-04-04 10:33:53 +08:00
|
|
|
anyhow = "1.0"
|
|
|
|
|
|
|
|
url = { version = "2.5", features = ["serde"] }
|
|
|
|
percent-encoding = "2.3.1"
|
|
|
|
|
|
|
|
# for tun packet
|
|
|
|
byteorder = "1.5.0"
|
|
|
|
|
|
|
|
# for proxy
|
|
|
|
cidr = { version = "0.2.2", features = ["serde"] }
|
|
|
|
socket2 = "0.5.5"
|
|
|
|
|
|
|
|
# for hole punching
|
|
|
|
stun_codec = "0.3.4"
|
|
|
|
bytecodec = "0.4.15"
|
|
|
|
rand = "0.8.5"
|
|
|
|
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2024-08-07 21:27:38 +08:00
|
|
|
pnet = { version = "0.35.0", features = ["serde"] }
|
2024-09-27 21:42:11 +08:00
|
|
|
serde_json = "1"
|
2024-04-04 10:33:53 +08:00
|
|
|
|
2024-08-08 00:08:59 +08:00
|
|
|
clap = { version = "4.4.8", features = [
|
|
|
|
"string",
|
|
|
|
"unicode",
|
|
|
|
"derive",
|
|
|
|
"wrap_help",
|
|
|
|
] }
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
async-recursion = "1.0.5"
|
|
|
|
|
2024-08-07 21:27:38 +08:00
|
|
|
network-interface = "2.0"
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
# for ospf route
|
2024-05-13 19:02:05 +08:00
|
|
|
petgraph = "0.6.5"
|
2024-04-04 10:33:53 +08:00
|
|
|
|
2024-08-25 00:44:45 +08:00
|
|
|
# for wireguard
|
|
|
|
boringtun = { package = "boringtun-easytier", version = "0.6.1", optional = true }
|
|
|
|
|
|
|
|
# for encryption
|
2024-05-07 23:14:29 +08:00
|
|
|
ring = { version = "0.17", optional = true }
|
2024-04-27 13:44:59 +08:00
|
|
|
bitflags = "2.5"
|
2024-05-03 07:55:00 +08:00
|
|
|
aes-gcm = { version = "0.10.3", optional = true }
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
# for cli
|
2024-08-07 21:27:38 +08:00
|
|
|
tabled = "0.16"
|
2024-04-04 10:33:53 +08:00
|
|
|
humansize = "2.1.3"
|
|
|
|
|
2024-08-07 21:27:38 +08:00
|
|
|
base64 = "0.22"
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
derivative = "2.2.0"
|
|
|
|
|
2024-05-03 07:55:00 +08:00
|
|
|
mimalloc-rust = { version = "0.2.1", optional = true }
|
|
|
|
|
2024-08-07 21:27:38 +08:00
|
|
|
# for mips
|
2024-05-03 07:55:00 +08:00
|
|
|
indexmap = { version = "~1.9.3", optional = false, features = ["std"] }
|
|
|
|
|
|
|
|
atomic-shim = "0.2.0"
|
2024-04-26 23:02:07 +08:00
|
|
|
|
2024-06-11 09:09:32 +08:00
|
|
|
smoltcp = { version = "0.11.0", optional = true, default-features = false, features = [
|
|
|
|
"std",
|
|
|
|
"medium-ip",
|
|
|
|
"proto-ipv4",
|
|
|
|
"proto-ipv6",
|
|
|
|
"socket-tcp",
|
|
|
|
"async",
|
|
|
|
] }
|
2024-06-10 10:27:24 +08:00
|
|
|
parking_lot = { version = "0.12.0", optional = true }
|
|
|
|
|
2024-08-03 15:12:54 +08:00
|
|
|
wildmatch = "2.3.4"
|
|
|
|
|
2024-08-21 11:00:13 +08:00
|
|
|
rust-i18n = "3"
|
2024-08-08 00:08:59 +08:00
|
|
|
sys-locale = "0.3"
|
|
|
|
|
2024-09-26 00:18:17 +08:00
|
|
|
ringbuf = "0.4.5"
|
|
|
|
async-ringbuf = "0.3.1"
|
|
|
|
|
2024-04-04 10:33:53 +08:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
windows-sys = { version = "0.52", features = [
|
|
|
|
"Win32_Networking_WinSock",
|
|
|
|
"Win32_NetworkManagement_IpHelper",
|
|
|
|
"Win32_Foundation",
|
|
|
|
"Win32_System_IO",
|
|
|
|
] }
|
2024-05-15 20:50:11 +08:00
|
|
|
encoding = "0.2"
|
2024-08-07 21:27:38 +08:00
|
|
|
winreg = "0.52"
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
[build-dependencies]
|
2024-08-07 21:27:38 +08:00
|
|
|
tonic-build = "0.12"
|
2024-08-08 00:08:59 +08:00
|
|
|
globwalk = "0.8.1"
|
|
|
|
regex = "1"
|
2024-09-18 21:55:28 +08:00
|
|
|
prost-build = "0.13.2"
|
|
|
|
rpc_build = { path = "src/proto/rpc_build" }
|
2024-04-04 10:33:53 +08:00
|
|
|
|
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
|
|
reqwest = { version = "0.11", features = ["blocking"] }
|
|
|
|
zip = "0.6.6"
|
|
|
|
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
serial_test = "3.0.0"
|
|
|
|
rstest = "0.18.2"
|
2024-08-31 14:37:34 +08:00
|
|
|
futures-util = "0.3.30"
|
2024-07-15 00:03:55 +08:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "linux")'.dev-dependencies]
|
2024-04-24 23:12:46 +08:00
|
|
|
defguard_wireguard_rs = "0.4.2"
|
2024-08-17 20:15:32 +08:00
|
|
|
tokio-socks = "0.5.2"
|
2024-05-03 07:55:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
[features]
|
2024-08-14 23:26:15 +08:00
|
|
|
default = ["wireguard", "mimalloc", "websocket", "smoltcp", "tun", "socks5"]
|
2024-06-11 09:09:32 +08:00
|
|
|
full = [
|
|
|
|
"quic",
|
|
|
|
"websocket",
|
|
|
|
"wireguard",
|
|
|
|
"mimalloc",
|
|
|
|
"aes-gcm",
|
|
|
|
"smoltcp",
|
|
|
|
"tun",
|
2024-08-14 23:26:15 +08:00
|
|
|
"socks5",
|
2024-06-11 09:09:32 +08:00
|
|
|
]
|
2024-08-14 23:26:15 +08:00
|
|
|
mips = ["aes-gcm", "mimalloc", "wireguard", "tun", "smoltcp", "socks5"]
|
2024-05-03 07:55:00 +08:00
|
|
|
wireguard = ["dep:boringtun", "dep:ring"]
|
|
|
|
quic = ["dep:quinn", "dep:rustls", "dep:rcgen"]
|
|
|
|
mimalloc = ["dep:mimalloc-rust"]
|
|
|
|
aes-gcm = ["dep:aes-gcm"]
|
2024-06-11 09:09:32 +08:00
|
|
|
tun = ["dep:tun"]
|
2024-06-02 09:15:40 +08:00
|
|
|
websocket = [
|
|
|
|
"dep:tokio-websockets",
|
|
|
|
"dep:http",
|
|
|
|
"dep:tokio-rustls",
|
|
|
|
"dep:rustls",
|
|
|
|
"dep:rcgen",
|
|
|
|
]
|
2024-06-10 10:27:24 +08:00
|
|
|
smoltcp = ["dep:smoltcp", "dep:parking_lot"]
|
2024-08-14 23:26:15 +08:00
|
|
|
socks5 = ["dep:smoltcp"]
|