]> code.octet-stream.net Git - netwatcher/blobdiff - Cargo.toml
List interfaces on Mac
[netwatcher] / Cargo.toml
index 04dea3fa0cfb80e16680f97d7d6c3b8fc1912d78..2615972375a4f7a9077cd9780ec604fc6ad30ee5 100644 (file)
@@ -5,7 +5,10 @@ edition = "2021"
 
 [dependencies]
 
 
 [dependencies]
 
-[dependencies.windows]
+[target.'cfg(unix)'.dependencies]
+nix = { version = "0.29.0", features = ["net"] }
+
+[target.'cfg(windows)'.dependencies.windows]
 version = "0.56.0"
 features = [
     "Win32_NetworkManagement_IpHelper",
 version = "0.56.0"
 features = [
     "Win32_NetworkManagement_IpHelper",