-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
114 lines (95 loc) · 2.95 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[package]
name = "tun-rs"
version = "1.4.8"
edition = "2021"
authors = ["xmh0511, vnt-dev"]
license = "Apache-2.0"
description = "A cross-platform infrastructure of Tun/Tap device creation and handling."
repository = "https://github.com/xmh0511/tun-rs"
keywords = ["tun", "tap", "network", "tunnel", "cross-platform"]
[lib]
crate-type = ["staticlib", "cdylib", "lib"]
[dependencies]
bytes = { version = "1" }
cfg-if = "1"
libc = { version = "0.2", features = ["extra_traits"] }
log = "0.4"
thiserror = "1"
blocking = { version = "1.6", optional = true }
tokio = { version = "1", features = [
"net",
"macros",
"io-util",
"rt",
], optional = true }
async-io = { version = "2.3", optional = true }
bitflags = "2.6.0"
ipnet = "2"
byteorder = "1.5.0"
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "android", target_os="freebsd"))'.dependencies]
nix = { version = "0.29", features = ["ioctl"] }
[target.'cfg(target_os = "windows")'.dependencies]
encoding_rs = "0.8.34"
scopeguard = "1.2.0"
winreg = "0.52.0"
c2rust-bitfields = "0.19"
windows-sys = { version = "0.59", features = [
"Win32_Devices_DeviceAndDriverInstallation",
"Win32_Storage_FileSystem",
"Win32_System_Registry",
"Win32_Networking_WinSock",
"Win32_NetworkManagement_Ndis",
"Win32_Foundation",
"Win32_Security",
"Win32_Security_WinTrust",
"Win32_Security_Cryptography",
"Win32_System_Threading",
"Win32_UI_WindowsAndMessaging",
"Win32_System_LibraryLoader",
"Win32_NetworkManagement_IpHelper",
] }
wintun = { version = "0.7", features = ["panic_on_unsent_packets"], package = "wintun-bindings" }
libloading = "0.8"
[target.'cfg(any(target_os = "linux", target_os = "freebsd",target_os = "windows"))'.dependencies]
mac_address = "1.1.7"
[dev-dependencies]
ctrlc2 = { version = "3", features = ["tokio", "termination"] }
env_logger = "0.11"
futures = "0.3"
packet = "0.1"
pnet_packet = "0.35.0"
serde_json = "1"
tokio = { version = "1", features = ["rt-multi-thread", "time"] }
async-std = { version = "1", features = ["attributes", "unstable"] }
async-ctrlc = "1.2.0"
[features]
default = ["wintun-dns"]
async = ["async_tokio"]
async_tokio = ["blocking", "tokio"]
async_std = ["blocking", "async-io"]
wintun-dns = []
experimental = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[example]]
name = "read-async-tokio"
required-features = ["async_tokio"]
[[example]]
name = "read-async-std"
required-features = ["async_std"]
[[example]]
name = "ping-tun-tokio"
required-features = ["async_tokio"]
[[example]]
name = "ping-tun-async-std"
required-features = ["async_std"]
[[example]]
name = "ping-tap-tokio"
required-features = ["async_tokio"]
[[example]]
name = "ping-tap-async-std"
required-features = ["async_std"]
[[example]]
name = "ping-tun-offload-tokio"
required-features = ["async_tokio"]