diff options
| author | David Lönnhager <david.l@mullvad.net> | 2025-01-16 13:05:38 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2025-01-24 17:35:04 +0100 |
| commit | bb23752099fcb6f01f85203cc347fbf152990a37 (patch) | |
| tree | bb55d11aade0975db6a5c6d8acfccb7cffb7bdae | |
| parent | 0bb18d6a7866e9056f38fb706f5b70ca0e154c40 (diff) | |
| download | mullvadvpn-bb23752099fcb6f01f85203cc347fbf152990a37.tar.xz mullvadvpn-bb23752099fcb6f01f85203cc347fbf152990a37.zip | |
Exclude maybenot_ffi from toml file on Android
| -rw-r--r-- | wireguard-go-rs/Cargo.toml | 2 | ||||
| -rw-r--r-- | wireguard-go-rs/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wireguard-go-rs/Cargo.toml b/wireguard-go-rs/Cargo.toml index 375e248f1c..f7572ab142 100644 --- a/wireguard-go-rs/Cargo.toml +++ b/wireguard-go-rs/Cargo.toml @@ -16,7 +16,7 @@ zeroize = "1.8.1" # This is done, instead of using the makefile in wireguard-go to build maybenot-ffi into its archive, to prevent # name clashes induced by link-time optimization. # NOTE: the version of maybenot-ffi below must be the same as the version checked into the wireguard-go submodule -[target.'cfg(unix)'.dependencies] +[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies] maybenot-ffi = "2.0.1" [target.'cfg(target_os = "windows")'.dependencies] diff --git a/wireguard-go-rs/src/lib.rs b/wireguard-go-rs/src/lib.rs index b080d307b2..a98c9e056a 100644 --- a/wireguard-go-rs/src/lib.rs +++ b/wireguard-go-rs/src/lib.rs @@ -30,7 +30,7 @@ pub type LoggingCallback = unsafe extern "system" fn(level: WgLogLevel, msg: *const c_char, context: LoggingContext); // Make symbols from maybenot-ffi visible to wireguard-go -#[cfg(all(daita, unix))] +#[cfg(all(daita, any(target_os = "linux", target_os = "macos")))] use maybenot_ffi as _; /// A wireguard-go tunnel |
