inherface 0.4.0

Retrieve a system's Network Interfaces on Linux
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 = "inherface"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Retrieve a system's Network Interfaces on Linux"
readme = "README.md"
keywords = [
    "network",
    "interfaces",
    "ip",
    "network",
    "network-interface",
]
categories = ["network-programming"]
license = "LGPL-2.0-only"
repository = "https://codeberg.org/black-cat/inherface"

[features]
default = [
    "ipv4",
    "ipv6",
    "mac",
]
ipv4 = []
ipv6 = []
mac = ["dep:mac_address"]
serde = ["dep:serde"]

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

[[bin]]
name = "inherface"
path = "src/main.rs"

[[bench]]
name = "all_interfaces"
path = "benches/all_interfaces.rs"
harness = false

[dependencies.libc]
version = "0.2.186"

[dependencies.mac_address]
version = "1.1.8"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["cargo_bench_support"]
default-features = false

[lints.rust]
missing_docs = "warn"