Skip to content

Commit

Permalink
fix linux/android builds
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 26, 2024
1 parent 5072073 commit 97826cf
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 10 deletions.
44 changes: 40 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions iroh-net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,17 @@ swarm-discovery = { version = "0.2.1", optional = true }
# dht_discovery
genawaiter = { version = "0.99", features = ["futures03"], optional = true }

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
[target.'cfg(all(target_os = "linux", not(target_os = "android")))'.dependencies]
netlink-packet-core = "0.7.0"
netlink-packet-route = "0.19.0" # 0.20/21 is blocked on rtnetlink bumping its dependency
netlink-packet-route = "0.21"
netlink-sys = "0.8.6"
rtnetlink = "0.14.1"
rtnetlink = "=0.14.1" # pinned because of https://github.com/rust-netlink/rtnetlink/issues/83

[target.'cfg(target_os = "android")'.dependencies]
netlink-packet-core = "0.7.0"
netlink-packet-route = "0.19" # 0.20/21 is blocked on rtnetlink bumping its dependency
netlink-sys = "0.8.6"
rtnetlink = "=0.13.1" # pinned because of https://github.com/rust-netlink/rtnetlink/issues/83

[target.'cfg(target_os = "windows")'.dependencies]
wmi = "0.14"
Expand Down
12 changes: 9 additions & 3 deletions net-tools/netwatch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ tokio = { version = "1", features = ["io-util", "macros", "sync", "rt", "net", "
tokio-util = { version = "0.7", features = ["rt"] }
tracing = "0.1"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
[target.'cfg(all(target_os = "linux", not(target_os = "android")))'.dependencies]
netlink-packet-core = "0.7.0"
netlink-packet-route = "0.19.0" # 0.21.0 is blocked on rtnetlink bumping its dependency
netlink-packet-route = "0.19" # 0.20/21 is blocked on rtnetlink bumping its dependency
netlink-sys = "0.8.6"
rtnetlink = "0.14.1"
rtnetlink = "=0.14.1" # pinned because of https://github.com/rust-netlink/rtnetlink/issues/83

[target.'cfg(target_os = "android")'.dependencies]
netlink-packet-core = "0.7.0"
netlink-packet-route = "0.19" # 0.20/21 is blocked on rtnetlink bumping its dependency
netlink-sys = "0.8.6"
rtnetlink = "=0.13.1" # pinned because of https://github.com/rust-netlink/rtnetlink/issues/83

[target.'cfg(target_os = "windows")'.dependencies]
wmi = "0.14"
Expand Down

0 comments on commit 97826cf

Please sign in to comment.