forked from DefGuard/wireguard-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (56 loc) · 1.7 KB
/
Cargo.toml
File metadata and controls
64 lines (56 loc) · 1.7 KB
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
[package]
name = "defguard_wireguard_rs"
version = "0.9.5"
edition = "2024"
rust-version = "1.87"
description = "A unified multi-platform high-level API for managing WireGuard interfaces"
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/DefGuard/wireguard-rs"
repository = "https://github.com/DefGuard/wireguard-rs"
keywords = ["wireguard", "network", "vpn"]
categories = ["network-programming"]
[dependencies]
base64 = "0.22"
log = "0.4"
serde = { version = "1.0", features = ["derive"], optional = true }
thiserror = "2.0"
x25519-dalek = { version = "2.0", features = ["getrandom", "static_secrets"] }
[dev-dependencies]
env_logger = "0.11"
serde_test = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
[target.'cfg(unix)'.dependencies]
defguard_boringtun = { version = "0.6", default-features = false, features = [
"device",
]}
libc = { version = "0.2", default-features = false }
nix = { version = "0.31", features = ["ioctl", "socket"] }
[target.'cfg(target_os = "windows")'.dependencies]
ipnet = "2.11"
windows = { version = "0.62", features = [
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
"Win32_System_Com",
] }
wireguard-nt = "0.5"
[target.'cfg(target_os = "linux")'.dependencies]
netlink-packet-core = "0.8"
netlink-packet-generic = "0.4"
netlink-packet-route = "0.29"
netlink-packet-utils = "0.6"
netlink-packet-wireguard = "0.3"
netlink-sys = "0.8"
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "netbsd"))'.dependencies]
regex = "1.12"
[features]
default = ["serde"]
check_dependencies = []
serde = ["dep:serde"]
[profile.release]
codegen-units = 1
panic = "abort"
lto = "thin"
strip = "symbols"