[[bench]]
harness = false
name = "aggregate"
path = "benches/aggregate.rs"
[[bench]]
harness = false
name = "routing_table"
path = "benches/routing_table.rs"
required-features = ["routing-table"]
[dependencies.thiserror]
version = "1.0"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5.1"
[[example]]
name = "cidr"
path = "examples/cidr.rs"
[[example]]
name = "routing_table"
path = "examples/routing_table.rs"
required-features = ["routing-table"]
[features]
default = []
routing-table = []
[lib]
name = "cidrs"
path = "src/lib.rs"
[package]
authors = ["Jialun Cai <jialun.cai@pm.me>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "CIDR Library"
documentation = "https://docs.rs/cidrs"
edition = "2024"
homepage = "https://github.com/clnv/cidrs"
keywords = ["Network", "IP", "CIDR"]
license = "MIT"
name = "cidrs"
readme = "README.md"
repository = "https://github.com/clnv/cidrs"
version = "0.2.1"
[package.metadata.docs.rs]
all-features = true
[package.metadata.playground]
all-features = true
[[test]]
name = "aggregate"
path = "tests/aggregate.rs"
[[test]]
name = "cidr_contains"
path = "tests/cidr_contains.rs"
[[test]]
name = "cidr_hosts"
path = "tests/cidr_hosts.rs"
[[test]]
name = "cidr_mask_of"
path = "tests/cidr_mask_of.rs"
[[test]]
name = "cidr_overlaps"
path = "tests/cidr_overlaps.rs"
[[test]]
name = "routing_table_insert"
path = "tests/routing_table_insert.rs"
required-features = ["routing-table"]
[[test]]
name = "routing_table_len"
path = "tests/routing_table_len.rs"
required-features = ["routing-table"]
[[test]]
name = "routing_table_list_matched"
path = "tests/routing_table_list_matched.rs"
required-features = ["routing-table"]
[[test]]
name = "routing_table_match_longest"
path = "tests/routing_table_match_longest.rs"
required-features = ["routing-table"]