Decision Workspace
ipnetwork vs ip-cidr vs ipnet
Side-by-side comparison of Rust crates
54
ipnetwork
growingv0.21.1
A library to work with IP CIDRs in Rust
41
ip-cidr
growingv0.1.0
IP CIDR utilities
72
ipnet
stablev2.12.2
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.
Core Metrics
| ipnetwork | ip-cidr | ipnet | |
|---|---|---|---|
| Health Score | 54 | 41 | 72 |
| Total Downloads | 102.2M | 1.1K | 634.0M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 4.3K | 9 | 12.7K |
| Releases | 46 | 1 | 72 |
| Last Updated | 640d ago | 417d ago | 34d ago |
| Age | 11y 5m | 1y 1m | 9y 1m |
Health Breakdown
ipnetwork
Maintenance
6
Quality
15
Community
15
Popularity
8
Documentation
10
ip-cidr
Maintenance
2
Quality
16
Community
9
Popularity
4
Documentation
10
ipnet
Maintenance
17
Quality
21
Community
14
Popularity
8
Documentation
12
Technical Details
| ipnetwork | ip-cidr | ipnet | |
|---|---|---|---|
| Version | 0.21.1 | 0.1.0 | 2.12.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | BSL-1.0 | MIT OR Apache-2.0 |
| Dependencies | 5 | 0 | 5 |
| Crate Size | 20KB | 8KB | 31KB |
| Features | 1 | 0 | 9 |
| Yanked % | 0.0% | 0.0% | 1.4% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | 1.83.0 | — |
| 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.
- •⚠ ipnetwork, ip-cidr have not been updated in over a year.
- •ipnetwork, ip-cidr are pre-1.0 — API may change.