nftnl 0.9.2

Safe abstraction for libnftnl. Provides low-level userspace access to the in-kernel nf_tables subsystem
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"
rust-version = "1.85.0"
name = "nftnl"
version = "0.9.2"
authors = ["Mullvad VPN"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe abstraction for libnftnl. Provides low-level userspace access to the in-kernel nf_tables subsystem"
readme = "README.md"
keywords = [
    "nftables",
    "nft",
    "firewall",
    "iptables",
    "netfilter",
]
categories = [
    "network-programming",
    "os::unix-apis",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mullvad/nftnl-rs"
resolver = "2"

[features]
nftnl-1-0-7 = ["nftnl-sys/nftnl-1-0-7"]
nftnl-1-0-8 = ["nftnl-sys/nftnl-1-0-8"]
nftnl-1-0-9 = ["nftnl-sys/nftnl-1-0-9"]
nftnl-1-1-0 = ["nftnl-sys/nftnl-1-1-0"]
nftnl-1-1-1 = ["nftnl-sys/nftnl-1-1-1"]
nftnl-1-1-2 = ["nftnl-sys/nftnl-1-1-2"]
nftnl-1-1-3 = ["nftnl-sys/nftnl-1-1-3"]
nftnl-1-1-4 = ["nftnl-sys/nftnl-1-1-4"]
nftnl-1-1-5 = ["nftnl-sys/nftnl-1-1-5"]
nftnl-1-1-6 = ["nftnl-sys/nftnl-1-1-6"]
nftnl-1-1-7 = ["nftnl-sys/nftnl-1-1-7"]
nftnl-1-1-8 = ["nftnl-sys/nftnl-1-1-8"]
nftnl-1-1-9 = ["nftnl-sys/nftnl-1-1-9"]
nftnl-1-2-0 = ["nftnl-sys/nftnl-1-2-0"]
nftnl-1-2-1 = ["nftnl-sys/nftnl-1-2-1"]
nftnl-1-2-2 = ["nftnl-sys/nftnl-1-2-2"]
nftnl-1-2-3 = ["nftnl-sys/nftnl-1-2-3"]
nftnl-1-2-4 = ["nftnl-sys/nftnl-1-2-4"]
nftnl-1-2-5 = ["nftnl-sys/nftnl-1-2-5"]
nftnl-1-2-6 = ["nftnl-sys/nftnl-1-2-6"]
nftnl-1-2-7 = ["nftnl-sys/nftnl-1-2-7"]
nftnl-1-2-8 = ["nftnl-sys/nftnl-1-2-8"]
nftnl-1-2-9 = ["nftnl-sys/nftnl-1-2-9"]
nftnl-1-3-0 = ["nftnl-sys/nftnl-1-3-0"]

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

[[example]]
name = "add-cgroup-rule"
path = "examples/add-cgroup-rule.rs"
required-features = ["nftnl-1-2-0"]

[[example]]
name = "add-ingress-rule"
path = "examples/add-ingress-rule.rs"

[[example]]
name = "add-rules"
path = "examples/add-rules.rs"

[[example]]
name = "filter-ethernet"
path = "examples/filter-ethernet.rs"

[dependencies.bitflags]
version = "2.6.0"

[dependencies.log]
version = "0.4"

[dependencies.nftnl-sys]
version = "0.6.2"

[dependencies.nix]
version = "0.31.2"
features = ["feature"]

[dev-dependencies.ipnetwork]
version = "0.20.0"

[dev-dependencies.mnl]
version = "0.3.0"

[build-dependencies.nftnl-sys]
version = "0.6.2"