rustio rustio.net
72

ipnet

v2.12.2 Stable

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 is guaranteed to compile using the stable toolchain.

MIT OR Apache-2.0 Edition 2018
Network programming #network#prefix#ip#cidr#subnet

Quick Verdict

  • โœ“Actively maintained (updated 34d ago)
  • โœ“Stable API (2.x for 9+ years)
  • โœ“Massive adoption (12.7K crates depend on it)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
634.0M
Dependents
12.7K
Releases
72
Size
31KB

Deep Insights

๐Ÿ“Š
Steady growth

64.2M downloads in the last 30 days (2.1M/day), up 17% from the previous period.

๐Ÿ›๏ธ
Foundational crate

12.7K crates depend on ipnet โ€” it's part of the Rust ecosystem's core infrastructure. Removing it from your dependency tree would be extremely difficult.

โš ๏ธ
Single maintainer risk

ipnet has only 1 owner despite 12.7K dependents. This is a bus-factor concern โ€” consider the implications for long-term support.

โœ…
Stable for 9+ years

The API has been stable (1.x) for over 9 years with 72 releases. This level of maturity means you can depend on it without worrying about breaking changes.

๐Ÿ“
Compact crate

At 30KB, ipnet is lightweight. Small crate size correlates with focused, well-scoped functionality.

๐ŸŒŸ
Used by top crates

Notable dependents include hyper-util, sqlx-core, sqlx-postgres, hickory-proto, hickory-resolver. When high-quality crates choose ipnet, it's a strong quality signal.

Health Breakdown

Maintenance 17/25

Recency, release consistency, active ratio

Quality 21/25

Yanked ratio, deps, size, maturity, features

Community 14/20

Reverse deps, ownership, ecosystem

Popularity 8/15

Downloads, momentum, growth trend

Documentation 12/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
477K/day avg-100%
01.0M2.0M3.0M8/229/99/2710/1511/211/19

Top Dependents

Version Adoption

v2.11.0
41%
v2.12.0
33%
v2.9.0
13%
v2.10.1
7%
v2.8.0
6%

Release Timeline

10 releasessince 2023
J
F
M
A
M
J
J
A
S
O
N
D
2023
4
2024
2
2025
1
2026
3
Less
More

Feature Flags

default =["std"]

std*jsonserdeheaplessschemarsschemars1schemars08ser_as_str

README

Loading README...

Maintainers

Dependencies
5
direct dependencies
Dependents
12.7K
crates depend on ipnet

Similar Crates