[package]
name = "network-interface"
description = "Retrieve system's Network Interfaces on Linux, FreeBSD, macOS and Windows on a standarized manner"
version = "2.0.0"
repository = "https://github.com/EstebanBorai/network-interface"
categories = ["web-programming", "network-programming"]
homepage = "https://github.com/EstebanBorai/network-interface"
keywords = ["network", "interfaces", "ip", "web", "network"]
license = "MIT OR Apache-2.0"
authors = ["Esteban Borai <estebanborai@gmail.com>"]
edition = "2018"
readme = "README.md"
[dependencies]
serde = { version = "1.0.183", features = ["derive"], optional = true}
thiserror = "1.0"
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
libc = "0.2.101"
[target.'cfg(any(target_os = "ios", target_os = "macos", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly"))'.dependencies]
libc = "0.2.101"
[target.'cfg(any(target_os = "macos", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly"))'.build-dependencies]
cc = "1.0.73"
[target.'cfg(target_os = "windows")'.dependencies]
libc = "0.2.101"
winapi = {version = "0.3", features = ["ws2def", "ws2ipdef", "netioapi", "iphlpapi", "iptypes", "ntdef", "winerror"] }
[features]
serde = ["dep:serde"]