[[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"]
[[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.1.0"
[dependencies.ipnetwork]
optional = true
version = "0.20.0"
[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.8.8"
[dev-dependencies.criterion]
features = ["cargo_bench_support", "html_reports"]
version = "0.5.1"
[dev-dependencies.rand]
features = ["small_rng"]
version = "0.8.5"
[features]
default = ["v4"]
disable_log = ["log/max_level_off"]
integration = []
v4 = ["v4_client", "v4_server"]
v4_client = ["dep:rand", "dep:clap"]
v4_server = ["dep:ipnetwork", "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 = "GPL-3.0-or-later"
name = "toe-beans"
readme = "README.md"
repository = "https://codeberg.org/black-cat/toe-beans"
version = "0.2.0"
[[test]]
name = "integration"
path = "tests/integration.rs"