Registry / networking / ipnetwork

ipnetwork

JSON →
library0.21.1rscratesunverified

A library to work with IP CIDRs in Rust.

# Cargo.toml [dependencies] ipnetwork = "0.21.1"
INSTALL
IMPORT
SIG · IPNETWORK
I
ipnetwork
networkingrustv0.21.1
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.

IpNetwork
use ipnetwork::IpNetwork;

Parses a CIDR string and prints the network.

use ipnetwork::IpNetwork; fn main() { let net: IpNetwork = "192.168.1.0/24".parse().unwrap(); println!("Network: {}", net); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.21.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
ipnetwork — cargo add ipnetwork · libregistry