# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "netwatch" version = "0.1.0" authors = ["n0 team"] build = 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/iroh" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "iroh_docsrs", ] [lib] name = "netwatch" path = "src/lib.rs" [dependencies.anyhow] version = "1" [dependencies.bytes] version = "1.7" [dependencies.futures-lite] version = "2.3" [dependencies.futures-sink] version = "0.3.25" [dependencies.futures-util] version = "0.3.25" [dependencies.libc] version = "0.2.139" [dependencies.netdev] version = "0.30.0" [dependencies.once_cell] version = "1.18.0" [dependencies.socket2] version = "0.5.3" [dependencies.thiserror] version = "1" [dependencies.time] version = "0.3.20" [dependencies.tokio] version = "1" features = [ "io-util", "macros", "sync", "rt", "net", "fs", "io-std", "signal", "process", "time", ] [dependencies.tracing] version = "0.1" [dev-dependencies.tokio] version = "1" features = [ "io-util", "sync", "rt", "net", "fs", "macros", "time", "test-util", ] [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-packet-core] version = "0.7.0" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-packet-route] version = "0.17.0" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-sys] version = "0.8.5" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.rtnetlink] version = "0.13.0" [target.'cfg(target_os = "windows")'.dependencies.derive_more] version = "1.0.0" features = ["debug"] [target.'cfg(target_os = "windows")'.dependencies.serde] version = "1" features = ["derive"] [target.'cfg(target_os = "windows")'.dependencies.windows] version = "0.51" features = [ "Win32_NetworkManagement_IpHelper", "Win32_Foundation", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock", ] [target.'cfg(target_os = "windows")'.dependencies.wmi] version = "0.13" [lints.clippy] unused-async = "warn" [lints.rust] missing_debug_implementations = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(iroh_docsrs)"]