netwatcher 0.5.0

List network interfaces and watch for changes efficiently
Documentation
# 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 = "netwatcher"
version = "0.5.0"
authors = ["Thomas Karpiniec <tom.karpiniec@outlook.com>"]
build = "build.rs"
exclude = ["android/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "List network interfaces and watch for changes efficiently"
readme = "README.md"
keywords = [
    "interfaces",
    "ip",
    "adapter",
    "address",
    "netmask",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/thombles/netwatcher"

[features]
async-io = ["dep:async-io"]
default = []
tokio = ["dep:tokio"]

[lib]
name = "netwatcher"
path = "src/lib.rs"

[[example]]
name = "watch"
path = "examples/watch.rs"

[[test]]
name = "android_api_test"
path = "tests/android_api_test.rs"

[[test]]
name = "api_test"
path = "tests/api_test.rs"

[[test]]
name = "async_api_test"
path = "tests/async_api_test.rs"

[dependencies]

[dev-dependencies.async-io]
version = "2"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
]

[build-dependencies.android-build]
version = "0.1.3"

[target.'cfg(any(target_vendor = "apple", target_os = "linux"))'.dependencies.async-io]
version = "2"
optional = true

[target.'cfg(any(target_vendor = "apple", target_os = "linux"))'.dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
]
optional = true

[target.'cfg(any(target_vendor = "apple", target_os = "linux", target_os = "android"))'.dependencies.nix]
version = "0.31.2"
features = ["net"]

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22.1"

[target.'cfg(target_os = "android")'.dependencies.ndk-context]
version = "0.1.1"

[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
features = [
    "Win32_NetworkManagement_IpHelper",
    "Win32_NetworkManagement_Ndis",
    "Win32_Networking_WinSock",
]