[package]
edition = "2024"
rust-version = "1.89"
name = "netwatch"
version = "0.14.0"
authors = ["n0 team"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform monitoring for network interface changes"
readme = "README.md"
keywords = [
"networking",
"interfaces",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/n0-computer/net-tools"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"iroh_docsrs",
]
[lib]
name = "netwatch"
path = "src/lib.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[dependencies.atomic-waker]
version = "1.1.2"
[dependencies.bytes]
version = "1.7"
[dependencies.n0-error]
version = "0.1.2"
[dependencies.n0-future]
version = "0.3.1"
[dependencies.n0-watcher]
version = "0.6.0"
[dependencies.pin-project-lite]
version = "0.2.16"
[dependencies.time]
version = "0.3.44"
[dependencies.tokio]
version = "1"
features = [
"io-util",
"macros",
"sync",
"time",
]
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.testresult]
version = "0.4.1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[build-dependencies.cfg_aliases]
version = "0.2.1"
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.derive_more]
version = "2.1"
features = ["display"]
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3.83"
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.web-sys]
version = "0.3.83"
features = [
"EventListener",
"EventTarget",
]
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies.wasm-tracing]
version = "2.1.0"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-packet-core]
version = "0.8.1"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-packet-route]
version = "0.28.0"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-proto]
version = "0.12.0"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-sys]
version = "0.8.7"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-core-foundation]
version = "0.3.2"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-system-configuration]
version = "0.3.2"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.libc]
version = "0.2.139"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.netdev]
version = "0.40.0"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.quinn-udp]
version = "0.8"
package = "iroh-quinn-udp"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.socket2]
version = "0.6"
features = ["all"]
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.tokio]
version = "1"
features = [
"io-util",
"macros",
"sync",
"rt",
"net",
"fs",
"io-std",
"signal",
"process",
"time",
]
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.tokio]
version = "1"
features = [
"io-util",
"sync",
"rt",
"net",
"fs",
"macros",
"time",
"test-util",
]
[target.'cfg(target_os = "android")'.dependencies.derive_more]
version = "2.0.1"
features = ["display"]
[target.'cfg(target_os = "windows")'.dependencies.derive_more]
version = "2.1"
features = ["debug"]
[target.'cfg(target_os = "windows")'.dependencies.serde]
version = "1"
features = ["derive"]
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62.2"
features = [
"Win32_NetworkManagement_IpHelper",
"Win32_Foundation",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-result]
version = "0.4"
[target.'cfg(target_os = "windows")'.dependencies.wmi]
version = "0.18"
[lints.clippy]
unused-async = "warn"
[lints.rust]
missing_debug_implementations = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(iroh_docsrs)"]