nftblock 0.1.2

Atomically apply CIDR lists with nftables netlink batches
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 = "nftblock"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Atomically apply CIDR lists with nftables netlink batches"
readme = "README.md"
license = "MIT OR Apache-2.0"

[features]
default = ["native-netlink"]
native-netlink = [
    "dep:nftnl",
    "dep:mnl",
]

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

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

[dependencies.anyhow]
version = "1.0.104"

[dependencies.clap]
version = "4.6.6"
features = [
    "derive",
    "env",
]

[dependencies.env_logger]
version = "0.11.11"

[dependencies.ipnet]
version = "2.12.1"
features = ["serde"]

[dependencies.log]
version = "0.4.33"

[dependencies.mnl]
version = "0.3.1"
optional = true

[dependencies.nftnl]
version = "0.9.4"
features = ["nftnl-1-1-6"]
optional = true

[dependencies.notify]
version = "8.2"

[dependencies.serde]
version = "1.0.229"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.151"

[dependencies.signal-hook]
version = "0.4.4"

[dependencies.thiserror]
version = "2.0.20"

[dependencies.toml]
version = "1.1.4"

[dev-dependencies.tempfile]
version = "3.27.0"

[lints.clippy]
multiple_unsafe_ops_per_block = "deny"
undocumented_unsafe_blocks = "deny"

[lints.rust]
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"

[profile.release]
lto = true
codegen-units = 1
strip = true