Files
kumomta/crates/cidr-map/Cargo.toml
T
Wez Furlong 98091b688d cidr-map: add CidrMap type
Unfortunately, the upstream bitstring-trees crate didn't expose
a way to query the tree (only iterate it), so I pulled in a copy
of the implementation and adjusted it for that purpose, removing
some unsafe code that replaced values during insertion (for performance)
with a simpler implementation that clones values instead.

With the map implementation in the crate, I adjusted the set
implementation to be a `CidrMap<()>` and dropped the bitstring-trees
dependency.
2023-03-12 10:59:57 -07:00

15 lines
328 B
TOML

[package]
name = "cidr-map"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bitstring = "0.1"
cidr = {version="0.2", features=["serde", "bitstring"]}
serde = {version="1.0", features=["derive"]}
[dev-dependencies]
k9 = "0.11"