rustio rustio.net
69

ipnet

v2.12.0 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 84d ago)
  • โœ“Stable API (2.x for 8+ years)
  • โœ“Massive adoption (5.5K crates depend on it)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
407.5M
Dependents
5.5K
Releases
70
Size
31KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

35.9M downloads in the last 30 days (1.2M/day), up 27% from the previous period.

๐Ÿ”—
Widely adopted

5.5K crates depend on ipnet. Strong ecosystem adoption means battle-tested code and long-term stability.

โš ๏ธ
Single maintainer risk

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

โœ…
Stable for 8+ years

The API has been stable (1.x) for over 8 years with 70 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, trust-dns-proto, hickory-proto. When high-quality crates choose ipnet, it's a strong quality signal.

Health Breakdown

Maintenance 14/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
1.0M/day avg+39%
0500K1.0M1.5M2/263/164/34/215/95/26

Top Dependents

Version Adoption

v2.11.0
49%
v2.9.0
19%
v2.12.0
12%
v2.10.1
10%
v2.8.0
10%

Release Timeline

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

Feature Flags

default =["std"]

std*jsonserdeheaplessschemarsschemars1schemars08ser_as_str

README

Loading README...

Maintainers

Dependencies
5
direct dependencies
Dependents
5.5K
crates depend on ipnet

Similar Crates