ipnet

crates.io v2.12.0

5,260,201 weekly downloads · 4 Dependencies

Recently published

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…

Install cargo add ipnet

Registry values

Reproduced verbatim from the official registry, with the source named on each value.

Weekly downloads 5,260,201 Source: crates.io (Rust)
Releases 70 Last release: 2026-03-03 Source: crates.io (Rust)
Dependencies 4 Source: crates.io (Rust)

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

Package details

Package
ipnet
Registry
crates.io
Version
2.12.0
Weekly downloads
5,260,201 (weekly)
Dependencies
4: heapless, schemars, serde
Releases
70
Last release
2026-03-03
First published
2017-08-14
Keywords
network, prefix, ip, cidr, subnet
Repository
https://github.com/krisprice/ipnet

Why a field shows "—": A dash means the value is not published by the source registry for that package. Quanteta never fills in a guessed value — a missing field stays blank.

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.

Q-Vitality Quanteta 70.4 / 100 Maintenance activity index (release cadence + download level).
Q-Trust Quanteta 17.1 / 100 Adoption / stability index (community size + download stability + age).
Q-Risk Quanteta 38.6 / 100 Dependency-surface index. Higher = more risk factors detected.

Data & Sources