Skip to content

Commit

Permalink
Merge pull request #85 from RReverser/windows-tweaks
Browse files Browse the repository at this point in the history
Tweak Windows implementation
  • Loading branch information
shellrow authored Aug 30, 2024
2 parents 2333a1a + 1ec955b commit 669d891
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 158 deletions.
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ categories = ["network-programming"]
license = "MIT"

[dependencies]
libc = "0.2"
serde = { version = "1", features = ["derive"], optional = true }

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[target.'cfg(target_os = "android")'.dependencies]
# DL Open
dlopen2 = { version = "0.5", default-features = false }
Expand All @@ -23,12 +25,9 @@ netlink-packet-core = "0.7"
netlink-packet-route = "0.17"
netlink-sys = "0.8"

[target.'cfg(windows)'.dependencies]
memalloc = "0.1.0"

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.52"
features = ["Win32_Foundation","Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock", "Win32_NetworkManagement_Ndis"]
features = ["Win32_Foundation", "Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock", "Win32_NetworkManagement_Ndis"]

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
system-configuration = "0.6"
Expand Down
Loading

0 comments on commit 669d891

Please sign in to comment.