Decision Workspace
non-null-const vs constptr vs const-gen
Side-by-side comparison of Rust crates
43
non-null-const
experimentalv0.1.0
A *const equivalent of NonNull<T>.
52
constptr
growingv0.3.1
NonNull without mutability
69
const-gen
stablev1.6.10
A crate for generating (relatively) complex compile-time constants in rust.
Core Metrics
| non-null-const | constptr | const-gen | |
|---|---|---|---|
| Health Score | 43 | 52 | 69 |
| Total Downloads | 147 | 135.5K | 602.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 59 | 37 |
| Releases | 1 | 4 | 46 |
| Last Updated | 279d ago | 545d ago | 12d ago |
| Age | 9m | 3y 7m | 5y 5m |
Health Breakdown
non-null-const
Maintenance
3
Quality
18
Community
6
Popularity
3
Documentation
13
constptr
Maintenance
5
Quality
18
Community
11
Popularity
6
Documentation
12
const-gen
Maintenance
18
Quality
22
Community
10
Popularity
7
Documentation
12
Technical Details
| non-null-const | constptr | const-gen | |
|---|---|---|---|
| Version | 0.1.0 | 0.3.1 | 1.6.10 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 0 | 2 |
| Crate Size | 13KB | 6KB | 11KB |
| Features | 14 | 2 | 5 |
| Yanked % | 0.0% | 0.0% | 2.2% |
| Edition | 2024 | 2021 | 2018 |
| MSRV | — | 1.84.1 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •const-gen leads with a health score of 69/100, but none of the options score above 80.
- •⚠ constptr has not been updated in over a year.
- •non-null-const, constptr are pre-1.0 — API may change.