[package]
edition = "2024"
name = "net-interfaces"
version = "0.1.0"
authors = ["Menhera.org Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lib crate to get information about network interfaces."
homepage = "https://github.com/metastable-void/net-interfaces"
readme = "README.md"
license = "Apache-2.0 OR MPL-2.0"
repository = "https://github.com/metastable-void/net-interfaces"
[features]
default = ["libc"]
libc = ["dep:libc"]
rtnetlink = ["dep:ftth-rtnl"]
[lib]
name = "net_interfaces"
path = "src/lib.rs"
[[example]]
name = "if_indextoname"
path = "examples/if_indextoname.rs"
[[example]]
name = "if_nametoindex"
path = "examples/if_nametoindex.rs"
[dependencies.libc]
version = "0.2"
optional = true
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.ftth-rtnl]
version = "0.3.4"
optional = true