net-interfaces 0.1.0

Lib crate to get information about network interfaces.
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 = "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