toe-beans 0.4.0

DHCP library, client, and server
Documentation
[[bench]]
harness = false
name = "decode"
path = "benches/decode.rs"
required-features = ["disable_log"]

[[bench]]
harness = false
name = "encode"
path = "benches/encode.rs"
required-features = ["disable_log"]

[[bench]]
harness = false
name = "leases"
path = "benches/leases.rs"
required-features = ["disable_log"]

[[bin]]
name = "client"
path = "src/bin/client.rs"
required-features = ["v4_client"]

[[bin]]
name = "server"
path = "src/bin/server.rs"
required-features = ["v4_server"]

[dependencies.clap]
features = ["derive"]
optional = true
version = "4.5.8"

[dependencies.env_logger]
default-features = false
version = "0.10.0"

[dependencies.inherface]
default-features = false
features = ["ipv4"]
optional = true
version = "0.2.0"

[dependencies.ip_network]
features = ["serde"]
optional = true
version = "0.4.1"

[dependencies.log]
version = "0.4"

[dependencies.mac_address]
features = ["serde"]
version = "1.1.8"

[dependencies.rand]
optional = true
version = "0.8.5"

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

[dependencies.toml]
optional = true
version = "0.9"

[dev-dependencies.criterion]
features = ["cargo_bench_support"]
version = "0.5.1"

[dev-dependencies.rand]
features = ["small_rng"]
version = "0.8.5"

[features]
benchmark = []
default = ["v4_client", "v4_server"]
disable_log = ["log/max_level_off"]
integration = []
v4_client = ["dep:rand", "dep:clap"]
v4_server = ["dep:ip_network", "dep:serde", "dep:toml", "dep:clap", "dep:inherface"]

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

[lints.clippy]
module_inception = "allow"

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming", "parser-implementations", "encoding"]
description = "DHCP library, client, and server"
edition = "2024"
homepage = "https://black-cat.us/toe-beans/toe-beans.html"
keywords = ["dhcp", "dhcpv4", "network"]
license = "LGPL-2.0-only"
name = "toe-beans"
readme = "README.md"
repository = "https://codeberg.org/black-cat/toe-beans"
version = "0.4.0"

[[test]]
name = "integration"
path = "tests/integration.rs"