-
Notifications
You must be signed in to change notification settings - Fork 20
/
Cargo.toml
52 lines (44 loc) · 1.49 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
[package]
name = "defguard_wireguard_rs"
version = "0.6.1"
edition = "2021"
rust-version = "1.80"
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"
[target.'cfg(target_os = "freebsd")'.dependencies]
libc = { version = "0.2", default-features = false }
nix = { version = "0.29", features = ["ioctl", "socket"] }
[target.'cfg(target_os = "macos")'.dependencies]
libc = { version = "0.2", default-features = false }
nix = { version = "0.29", features = ["ioctl", "socket"] }
[target.'cfg(target_os = "netbsd")'.dependencies]
libc = { version = "0.2", default-features = false }
nix = { version = "0.29", features = ["ioctl", "socket"] }
[target.'cfg(target_os = "linux")'.dependencies]
netlink-packet-core = "0.7"
netlink-packet-generic = "0.3"
netlink-packet-route = "0.20"
netlink-packet-utils = "0.5"
netlink-packet-wireguard = "0.2"
netlink-sys = "0.8"
[features]
default = ["serde"]
check_dependencies = []
serde = ["dep:serde"]
[profile.release]
lto = "thin"
strip = "symbols"