ipnet
crates.io v2.12.05,260,201 weekly downloads · 4 Dependencies
Source data as of:
Summary
Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new IpNet, Ipv4Net, and Ipv6Net types build on the existing IpAddr, Ipv4Addr, and Ipv6Addr types already provided in Rust's standard library and align to their design to stay…
cargo add ipnet
- Ecosystemcrates.io
- Version2.12.0
- Weekly downloads5,260,201
- License—
- Dependencies4
- Last release2026-03-03
- First published2017-08-14
Registry values
Reproduced verbatim from the official registry, with the source named on each value.
Description
Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new IpNet, Ipv4Net, and Ipv6Net types build on the existing IpAddr, Ipv4Addr, and Ipv6Addr types already provided in Rust's standard library and align to their design to stay consistent. The module also provides useful traits that extend Ipv4Addr and Ipv6Addr with methods for Add, Sub, BitAnd, and BitOr operations. The module only uses stable feature so it
Registry-supplied description, cleaned to plain text. Source: crates.io (Rust).
Show original (raw) description
Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new `IpNet`, `Ipv4Net`, and `Ipv6Net` types build on the existing `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` types already provided in Rust's standard library and align to their design to stay consistent. The module also provides useful traits that extend `Ipv4Addr` and `Ipv6Addr` with methods for `Add`, `Sub`, `BitAnd`, and `BitOr` operations. The module only uses stable feature so it
Derived indices (computation method published)
Quanteta-computed from the registry values below. This is a derived index, not a measured registry metric. See the formula on the Data & Sources page.