Skip to content

Commit aad8722

Browse files
Do not compile wireguard-go-rs on Windows
1 parent 5871c07 commit aad8722

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: wireguard-go-rs/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

9-
[dependencies]
10-
9+
[target.'cfg(unix)'.dependencies]
1110
# NOTE: remember to update libwg/go.mod if you change this:
1211
cmaybenot = { git = "https://github.com/mullvad/wireguard-go", rev = "7cf6da8e40b37770d911eb2b4b5469f77fdd8aa2" }

Diff for: wireguard-go-rs/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(unix)]
12
pub type Fd = std::os::unix::io::RawFd;
23
use std::ffi::{c_char, c_void};
34
pub type WgLogLevel = u32;

0 commit comments

Comments
 (0)