Registry / networking / cidr-utils

cidr-utils

JSON →
library0.6.2rscratesunverified

Provides functions for working with IPv4 and IPv6 CIDR notations.

# Cargo.toml [dependencies] cidr-utils = "0.6.2"
INSTALL
IMPORT
SIG · CIDR-UTILS
C
cidr-utils
networkingrustv0.6.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ipv4Cidr
use cidr_utils::Ipv4Cidr;

Parses an IPv4 CIDR and prints the network address.

use cidr_utils::Ipv4Cidr; fn main() { let cidr = Ipv4Cidr::new("192.168.1.0/24").unwrap(); println!("Network: {}", cidr.network()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
cidr-utils — cargo add cidr-utils · libregistry