Decision Workspace
notzero vs nonmax vs nz
Side-by-side comparison of Rust crates
52
notzero
growingv1.1.0
macro for constructing `std::num::NonZero*` from constants
48
nonmax
growingv0.5.5
Numeric types that cannot hold maximum values
47
nz
growingv0.4.1
Collection of 100% safe macros for creating non-zero integers more easily.
Core Metrics
| notzero | nonmax | nz | |
|---|---|---|---|
| Health Score | 52 | 48 | 47 |
| Total Downloads | 44.7K | 19.4M | 28.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1.1K | 5 |
| Releases | 3 | 9 | 19 |
| Last Updated | 834d ago | 1055d ago | 815d ago |
| Age | 2y 11m | 6y | 3y 2m |
Health Breakdown
notzero
Maintenance
5
Quality
21
Community
5
Popularity
6
Documentation
15
nonmax
Maintenance
4
Quality
13
Community
11
Popularity
8
Documentation
12
nz
Maintenance
6
Quality
16
Community
8
Popularity
5
Documentation
12
Technical Details
| notzero | nonmax | nz | |
|---|---|---|---|
| Version | 1.1.0 | 0.5.5 | 0.4.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | Zlib | MIT OR Apache-2.0 | Zlib OR Apache-2.0 OR MIT |
| Dependencies | 2 | 2 | 0 |
| Crate Size | 4KB | 11KB | 11KB |
| Features | 1 | 2 | 0 |
| Yanked % | 0.0% | 11.1% | 0.0% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | 1.79.0 | — | 1.79.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •notzero leads with a health score of 52/100, but none of the options score above 80.
- •nonmax has the most downloads (19.4M), suggesting wider adoption.
- •nonmax is depended on by 1.1K crates — strongest ecosystem trust.
- •⚠ notzero, nonmax, nz have not been updated in over a year.
- •nonmax, nz are pre-1.0 — API may change.