Decision Workspace
philiprehberger-ip-utils vs ipnet vs netip
Side-by-side comparison of Rust crates
IP address utilities — CIDR matching, subnet calculation, classification, and anonymization
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.
IPv4/IPv6 network types with non-contiguous masks support
Core Metrics
| philiprehberger-ip-utils | ipnet | netip | |
|---|---|---|---|
| Health Score | 51 | 72 | 53 |
| Total Downloads | 73 | 634.0M | 4.7K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 12.7K | 0 |
| Releases | 4 | 72 | 12 |
| Last Updated | 187d ago | 34d ago | 60d ago |
| Age | 6m | 9y 1m | 2y 3m |
Health Breakdown
Technical Details
| philiprehberger-ip-utils | ipnet | netip | |
|---|---|---|---|
| Version | 0.2.0 | 2.12.2 | 0.3.9 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | Apache-2.0 |
| Dependencies | 0 | 5 | 2 |
| Crate Size | 11KB | 31KB | 147KB |
| Features | 0 | 9 | 0 |
| Yanked % | 0.0% | 1.4% | 0.0% |
| Edition | 2021 | 2018 | 2024 |
| MSRV | 1.70 | — | 1.88 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •ipnet leads with a health score of 72/100, but none of the options score above 80.
- •ipnet is depended on by 12.7K crates — strongest ecosystem trust.
- •philiprehberger-ip-utils, netip are pre-1.0 — API may change.