Decision Workspace
rune-cidr vs ipnet vs philiprehberger-ip-utils
Side-by-side comparison of Rust crates
CIDR (IPv4/IPv6) parsing and IP-range membership testing — no dependencies beyond std
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.
IP address utilities — CIDR matching, subnet calculation, classification, and anonymization
Core Metrics
| rune-cidr | ipnet | philiprehberger-ip-utils | |
|---|---|---|---|
| Health Score | 42 | 72 | 51 |
| Total Downloads | 16 | 634.0M | 73 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 12.7K | 0 |
| Releases | 1 | 72 | 4 |
| Last Updated | 50d ago | 34d ago | 187d ago |
| Age | 1m | 9y 1m | 6m |
Health Breakdown
Technical Details
| rune-cidr | ipnet | philiprehberger-ip-utils | |
|---|---|---|---|
| Version | 0.1.0 | 2.12.2 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 0 | 5 | 0 |
| Crate Size | 3KB | 31KB | 11KB |
| Features | 0 | 9 | 0 |
| Yanked % | 0.0% | 1.4% | 0.0% |
| Edition | 2024 | 2018 | 2021 |
| MSRV | — | — | 1.70 |
| 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.
- •rune-cidr, philiprehberger-ip-utils are pre-1.0 — API may change.