[build-dependencies.cfg_aliases]
version = "0.2"
[dependencies.atomic-waker]
version = "1.1.2"
[dependencies.bytes]
version = "1.7"
[dependencies.n0-future]
version = "0.1.1"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3.20"
[dependencies.tokio]
features = ["io-util", "macros", "sync", "time"]
version = "1"
[dependencies.tokio-util]
features = ["rt"]
version = "0.7"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.testresult]
version = "0.4.1"
[dev-dependencies.tracing-subscriber]
features = ["env-filter"]
version = "0.3"
[lib]
name = "netwatch"
path = "src/lib.rs"
[lints.clippy]
unused-async = "warn"
[lints.rust]
missing_debug_implementations = "warn"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(iroh_docsrs)"]
level = "warn"
priority = 0
[package]
authors = ["n0 team"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
description = "Cross-platform monitoring for network interface changes"
edition = "2021"
keywords = ["networking", "interfaces"]
license = "MIT OR Apache-2.0"
name = "netwatch"
readme = "README.md"
repository = "https://github.com/n0-computer/net-tools"
rust-version = "1.81"
version = "0.4.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3"
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.web-sys]
features = ["EventListener", "EventTarget"]
version = "0.3"
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies.tracing-subscriber-wasm]
version = "0.1.0"
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(all(target_os = "linux", not(target_os = "android")))'.dependencies.netlink-packet-core]
version = "0.7.0"
[target.'cfg(all(target_os = "linux", not(target_os = "android")))'.dependencies.netlink-packet-route]
version = "0.19"
[target.'cfg(all(target_os = "linux", not(target_os = "android")))'.dependencies.netlink-sys]
version = "0.8.6"
[target.'cfg(all(target_os = "linux", not(target_os = "android")))'.dependencies.rtnetlink]
version = "=0.14.1"
[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.31.0"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.quinn-udp]
package = "iroh-quinn-udp"
version = "0.5.5"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.socket2]
version = "0.5.3"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.tokio]
features = ["io-util", "macros", "sync", "rt", "net", "fs", "io-std", "signal", "process", "time"]
version = "1"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.tokio]
features = ["io-util", "sync", "rt", "net", "fs", "macros", "time", "test-util"]
version = "1"
[target.'cfg(target_os = "android")'.dependencies.netlink-packet-core]
version = "0.7.0"
[target.'cfg(target_os = "android")'.dependencies.netlink-packet-route]
version = "0.19"
[target.'cfg(target_os = "android")'.dependencies.netlink-sys]
version = "0.8.6"
[target.'cfg(target_os = "android")'.dependencies.rtnetlink]
version = "=0.13.1"
[target.'cfg(target_os = "windows")'.dependencies.derive_more]
features = ["debug"]
version = "1.0.0"
[target.'cfg(target_os = "windows")'.dependencies.serde]
features = ["derive"]
version = "1"
[target.'cfg(target_os = "windows")'.dependencies.windows]
features = ["Win32_NetworkManagement_IpHelper", "Win32_Foundation", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock"]
version = "0.59"
[target.'cfg(target_os = "windows")'.dependencies.windows-result]
version = "0.3"
[target.'cfg(target_os = "windows")'.dependencies.wmi]
version = "0.14"
[[test]]
name = "smoke"
path = "tests/smoke.rs"