We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wireguard-go-rs
1 parent 5871c07 commit aad8722Copy full SHA for aad8722
wireguard-go-rs/Cargo.toml
@@ -6,7 +6,6 @@ edition = "2021"
6
7
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
9
-[dependencies]
10
-
+[target.'cfg(unix)'.dependencies]
11
# NOTE: remember to update libwg/go.mod if you change this:
12
cmaybenot = { git = "https://github.com/mullvad/wireguard-go", rev = "7cf6da8e40b37770d911eb2b4b5469f77fdd8aa2" }
wireguard-go-rs/src/lib.rs
@@ -1,3 +1,4 @@
1
+#![cfg(unix)]
2
pub type Fd = std::os::unix::io::RawFd;
3
use std::ffi::{c_char, c_void};
4
pub type WgLogLevel = u32;
0 commit comments