Decision Workspace
non-null-const vs constptr vs const-gen
Side-by-side comparison of Rust crates
47
non-null-const
experimentalv0.1.0
A *const equivalent of NonNull<T>.
52
constptr
growingv0.3.1
NonNull without mutability
68
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
Core Metrics
| non-null-const | constptr | const-gen | |
|---|---|---|---|
| Health Score | 47 | 52 | 68 |
| Total Downloads | 45 | 86.3K | 321.8K |
| 30d Downloads | 18 | 8.9K | 25.5K |
| Dependents | 1 | 33 | 34 |
| Releases | 1 | 4 | 45 |
| Last Updated | 83d ago | 349d ago | 37d ago |
| Age | 2m | 3y | 4y 11m |
Health Breakdown
non-null-const
Maintenance
8
Quality
18
Community
6
Popularity
2
Documentation
13
constptr
Maintenance
6
Quality
18
Community
10
Popularity
6
Documentation
12
const-gen
Maintenance
17
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.9 |
| 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 68/100, but none of the options score above 80.
- •non-null-const, constptr are pre-1.0 — API may change.