[](https://github.com/stbuehler/rust-cidr/actions/workflows/rust.yml)
[](https://ci.appveyor.com/project/stbuehler/rust-cidr)
[](https://crates.io/crates/cidr)
[](./LICENSE)
# cidr crate
This library provides types to represent an IP network (`Cidr`) or an IP
host within a network (`Inet`).
The naming follows the names of the [PostgreSQL data types](https://www.postgresql.org/docs/current/static/datatype-net-types.html)
The documentation for `master` is located at [https://stbuehler.github.io/rustdocs/cidr/cidr/](https://stbuehler.github.io/rustdocs/cidr/cidr/); released versions are documented at [https://docs.rs/cidr](https://docs.rs/cidr).
## Examples
- example making good use of the `bitstring` feature and the `bitstring-trees` crate: https://github.com/stbuehler/rust-gather-cidr-map