Registry / networking / ipnet
library2.12.0rscratesunverified

Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes.

# Cargo.toml [dependencies] ipnet = "2.12.0"
INSTALL
IMPORT
SIG · IPNET
I
ipnet
networkingrustv2.12.0
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.

IpNet
use ipnet::IpNet;

Parses an IP network prefix and prints it.

use ipnet::IpNet; fn main() -> Result<(), ipnet::IpNetError> { let net: IpNet = "192.168.1.0/24".parse()?; println!("Network: {}", net); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
ipnet — cargo add ipnet · libregistry