use-cidr
use-cidr provides small helpers for parsing CIDR notation and validating prefix lengths.
Experimental: this crate is below 0.3.0 and the API may change.
Example Usage
use ;
let block = parse_cidr.unwrap;
assert_eq!;
assert_eq!;
Scope
- CIDR parsing for IPv4 and IPv6 blocks.
- Prefix-length validation helpers.
Non-goals
- Full subnet math.
- Route table implementation.
- IP range expansion.
- Firewall logic.
License
Licensed under MIT OR Apache-2.0.