cidr-radix 11.2.0

Zero-dependency, zero-allocation IPv4/IPv6 CIDR parsing, bitmask matching, canonicalization, and radix-indexed IpCidrSet lookup.
Documentation
1
2
3
4
5
6
7
8
/// ASCII byte for colon used to distinguish IPv6 literals from IPv4 literals.
pub(crate) const ASCII_COLON: u8 = b':';

/// ASCII byte for dot used for early IPv4 family detection.
pub(crate) const CIDR_ASCII_DOT: u8 = b'.';

/// Maximum leading bytes inspected to classify an IPv4 vs IPv6 literal (`xxxx:`).
pub(crate) const FAMILY_PROBE_BYTES: usize = 5;