linux fixes

This commit is contained in:
John Smith
2023-10-13 18:17:10 -04:00
parent d922bc1f5d
commit cf6a139928
5 changed files with 30 additions and 31 deletions
+12 -1
View File
@@ -14,10 +14,11 @@ crate-type = ["cdylib", "staticlib", "rlib"]
[features]
default = ["rt-tokio"]
rt-async-std = ["async-std", "async_executors/async_std"]
rt-async-std = ["async-std", "async_executors/async_std", "rtnetlink/smol_socket"]
rt-tokio = [
"tokio",
"tokio-util",
"rtnetlink/tokio_socket",
"async_executors/tokio_tp",
"async_executors/tokio_io",
"async_executors/tokio_timer",
@@ -82,6 +83,12 @@ getrandom = { version = "0.2", features = ["js"] }
async-lock = "2.8.0"
send_wrapper = { version = "0.6.0", features = ["futures"] }
# Dependencies for Linux or Android
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
rtnetlink = { version = "=0.13.1", default-features = false }
netlink-sys = { version = "=0.8.5" }
netlink-packet-route = { version = "=0.17.1" }
# Dependencies for Android
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.21.1"
@@ -101,6 +108,10 @@ winapi = { version = "0.3.9", features = ["iptypes", "iphlpapi"] }
oslog = { version = "0.2.0", optional = true }
tracing-oslog = { version = "0.1.2", optional = true }
# Dependenices for all Unix (Linux, Android, MacOS, iOS)
[target.'cfg(unix)'.dependencies]
ifstructs = "0.1.1"
### DEV DEPENDENCIES
[dev-dependencies]