[package]
name = "rtnetlink"
version = "0.19.0"
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
edition = "2021"
homepage = "https://github.com/rust-netlink/rtnetlink"
keywords = ["netlink", "ip", "linux"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/rust-netlink/rtnetlink"
description = "manipulate linux networking resources via netlink"
rust-version = "1.66.1"

[features]
test_as_root = []
default = ["tokio_socket"]
tokio_socket = ["netlink-proto/tokio_socket", "tokio"]
smol_socket = ["netlink-proto/smol_socket", "async-global-executor"]

[dependencies]
futures-util = "0.3.11"
futures-channel = "0.3.11"
log = "0.4.8"
thiserror = "1"
netlink-sys = { version = "0.8" }
netlink-packet-route = { version = "0.26" }
netlink-packet-core = { version = "0.8" }
netlink-proto = { default-features = false, version = "0.12.0" }
nix = { version = "0.30.0", default-features = false, features = ["fs", "mount", "sched", "signal"] }
tokio = { version = "1.0.1", features = ["rt"], optional = true}
async-global-executor = { version = "2.0.2", optional = true }

[dev-dependencies]
env_logger = "0.11.0"
ipnetwork = "0.20.0"
tokio = { version = "1.0.1", features = ["macros", "rt", "rt-multi-thread"] }
async-std = { version = "1.9.0", features = ["attributes"]}
macaddr = "1.0"
