Decision Workspace
typerat vs smallest-uint vs const-gen
Side-by-side comparison of Rust crates
42
typerat
growingv0.0.4
Type-level rational numbers based on `typenum`.
47
smallest-uint
growingv0.1.5
Gets the smallest unsigned integer type that can represent a given value
68
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
Core Metrics
| typerat | smallest-uint | const-gen | |
|---|---|---|---|
| Health Score | 42 | 47 | 68 |
| Total Downloads | 5.1K | 28.7K | 321.8K |
| 30d Downloads | 7 | 859 | 25.5K |
| Dependents | 0 | 0 | 34 |
| Releases | 4 | 6 | 45 |
| Last Updated | 733d ago | 1188d ago | 37d ago |
| Age | 2y 1m | 5y 1m | 4y 11m |
Health Breakdown
typerat
Maintenance
4
Quality
15
Community
6
Popularity
4
Documentation
13
smallest-uint
Maintenance
5
Quality
17
Community
6
Popularity
5
Documentation
14
const-gen
Maintenance
17
Quality
22
Community
10
Popularity
7
Documentation
12
Technical Details
| typerat | smallest-uint | const-gen | |
|---|---|---|---|
| Version | 0.0.4 | 0.1.5 | 1.6.9 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 2 | 2 | 2 |
| Crate Size | 13KB | 7KB | 11KB |
| Features | 0 | 2 | 5 |
| Yanked % | 0.0% | 0.0% | 2.2% |
| Edition | 2021 | 2018 | 2018 |
| MSRV | — | 1.37 | — |
| 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.
- •⚠ typerat, smallest-uint have not been updated in over a year.
- •typerat, smallest-uint are pre-1.0 — API may change.