# 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" rust-version = "1.75" name = "cotton-netif" version = "0.0.5" authors = ["Peter Hartley "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Enumerating available network interfaces and their IP addresses" homepage = "https://github.com/pdh11/cotton" readme = "README.md" categories = ["network-programming"] license = "CC0-1.0" repository = "https://github.com/pdh11/cotton" [package.metadata.docs.rs] all-features = true [lib] name = "cotton_netif" path = "src/lib.rs" [[example]] name = "netif-monitor" path = "examples/netif-monitor.rs" doc-scrape-examples = true required-features = [ "std", "async", "sync", ] [dependencies.no-std-net] version = "0.6" default-features = false [features] async = [ "std", "dep:tokio", "dep:futures-util", "dep:async-stream", "dep:tokio-test", "dep:neli", "dep:nix", ] default = [ "std", "async", "sync", ] std = ["no-std-net/std"] sync = [ "std", "dep:nix", "dep:libc", ] [target.'cfg(not(target_os = "none"))'.dependencies.async-stream] version = "0.3.1" optional = true default-features = false [target.'cfg(not(target_os = "none"))'.dependencies.futures-util] version = "0.3" features = [ "async-await", "async-await-macro", ] optional = true default-features = false [target.'cfg(not(target_os = "none"))'.dependencies.libc] version = "0.2.155" optional = true default-features = false [target.'cfg(not(target_os = "none"))'.dependencies.nix] version = "0.29" features = ["net"] optional = true default-features = false [target.'cfg(not(target_os = "none"))'.dependencies.tokio] version = "1.24" features = [ "macros", "sync", "rt", ] optional = true default-features = false [target.'cfg(not(target_os = "none"))'.dependencies.tokio-test] version = "0.4" optional = true default-features = false [target.'cfg(target_os = "linux")'.dependencies.neli] version = "0.6.1" features = ["async"] optional = true default-features = false