mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-28 17:26:14 +00:00
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.
15 lines
328 B
TOML
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"
|