Commit Graph
3 Commits
Author SHA1 Message Date
Mike Hillyer dcec7ce65c Tidy up the user guide a bit, update the copyright. 2023-03-29 14:34:20 -04:00
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
Wez Furlong 4c1848ac7c Add explicit license 2023-03-09 20:56:02 -07:00