blob: 7efbac12ab55d5b624aacc4b0972d839992d7b17 (
plain)
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
|
[package]
name = "wireguard-go-rs"
description = "Rust bindings to wireguard-go with DAITA support"
edition.workspace = true
license.workspace = true
[build-dependencies]
anyhow.workspace = true
[dependencies]
thiserror.workspace = true
log.workspace = true
zeroize = "1.8.1"
talpid-types.path = "../talpid-types"
# On platforms where maybenot and wireguard-go can be built statically (Linux and macOS) we use
# this hack to include it. The hack is that we depend on this crate here even if neither
# wireguard-go-rs nor its upstream dependants use it.
# This is only here so that maybenot-ffi is built and its symbols are available to wireguard-go
# at link time.
# NOTE: for other platforms, maybenot-ffi is NOT declared here, but instead built directly from
# wireguard-go-rs/libwg/wireguard-go/maybenot-ffi
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
maybenot-ffi = "2.2.2"
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { workspace = true, features = [
"Win32_Networking",
"Win32_NetworkManagement",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
] }
|