Decision Workspace
non-zero vs nonzero-char vs notzero
Side-by-side comparison of Rust crates
47
non-zero
experimentalv0.2.0
A macro for creating constant non-zero integers (with type inference).
53
nonzero-char
experimentalv0.3.0
Implement NonZeroChar, like NonZeroU32
50
notzero
growingv1.1.0
macro for constructing `std::num::NonZero*` from constants
Core Metrics
| non-zero | nonzero-char | notzero | |
|---|---|---|---|
| Health Score | 47 | 53 | 50 |
| Total Downloads | 975 | 2.5K | 5.5K |
| 30d Downloads | 59 | 8 | 187 |
| Dependents | 0 | 0 | 0 |
| Releases | 2 | 6 | 3 |
| Last Updated | 47d ago | 51d ago | 638d ago |
| Age | 10m | 11m | 2y 4m |
Health Breakdown
non-zero
Maintenance
14
Quality
14
Community
5
Popularity
4
Documentation
10
nonzero-char
Maintenance
16
Quality
15
Community
6
Popularity
4
Documentation
12
notzero
Maintenance
5
Quality
21
Community
5
Popularity
4
Documentation
15
Technical Details
| non-zero | nonzero-char | notzero | |
|---|---|---|---|
| Version | 0.2.0 | 0.3.0 | 1.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | Zlib |
| Dependencies | 1 | 0 | 2 |
| Crate Size | 10KB | 14KB | 4KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | 1.89 | 1.79.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •nonzero-char leads with a health score of 53/100, but none of the options score above 80.
- •notzero has the most downloads (5.5K), suggesting wider adoption.
- •⚠ notzero has not been updated in over a year.
- •non-zero, nonzero-char are pre-1.0 — API may change.