Decision Workspace
routemap vs ipnet vs ipnetwork
Side-by-side comparison of Rust crates
Fast in-memory IP prefix routing tables for IPv4 and IPv6. Longest Prefix Match via stride-4 treebitmap, built on ipnetx.
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.
A library to work with IP CIDRs in Rust
Core Metrics
| routemap | ipnet | ipnetwork | |
|---|---|---|---|
| Health Score | 47 | 68 | 54 |
| Total Downloads | 514 | 471.7M | 82.0M |
| 30d Downloads | 0 | 24.7M | 4.6M |
| Dependents | 0 | 7.9K | 3.8K |
| Releases | 5 | 70 | 46 |
| Last Updated | 23d ago | 133d ago | 552d ago |
| Age | 1m | 8y 11m | 11y 2m |
Health Breakdown
Technical Details
| routemap | ipnet | ipnetwork | |
|---|---|---|---|
| Version | 0.1.4 | 2.12.0 | 0.21.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 5 | 5 |
| Crate Size | 50KB | 31KB | 20KB |
| Features | 0 | 9 | 1 |
| Yanked % | 0.0% | 1.4% | 0.0% |
| Edition | 2024 | 2018 | 2021 |
| MSRV | 1.86 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •ipnet leads with a health score of 68/100, but none of the options score above 80.
- •ipnet is depended on by 7.9K crates — strongest ecosystem trust.
- •⚠ ipnetwork has not been updated in over a year.
- •routemap, ipnetwork are pre-1.0 — API may change.