Decision Workspace
smallest-uint vs typerat vs const-arithmetic
Side-by-side comparison of Rust crates
47
smallest-uint
growingv0.1.5
Gets the smallest unsigned integer type that can represent a given value
42
typerat
growingv0.0.4
Type-level rational numbers based on `typenum`.
40
const-arithmetic
growingv1.0.4
Exploits Rust's type generic system to perform integer arithmetics at compile time.
Core Metrics
| smallest-uint | typerat | const-arithmetic | |
|---|---|---|---|
| Health Score | 47 | 42 | 40 |
| Total Downloads | 28.7K | 5.1K | 6.2K |
| 30d Downloads | 859 | 7 | 14 |
| Dependents | 0 | 0 | 0 |
| Releases | 6 | 4 | 5 |
| Last Updated | 1188d ago | 733d ago | 1017d ago |
| Age | 5y 1m | 2y 1m | 2y 10m |
Health Breakdown
smallest-uint
Maintenance
5
Quality
17
Community
6
Popularity
5
Documentation
14
typerat
Maintenance
4
Quality
15
Community
6
Popularity
4
Documentation
13
const-arithmetic
Maintenance
4
Quality
15
Community
6
Popularity
5
Documentation
10
Technical Details
| smallest-uint | typerat | const-arithmetic | |
|---|---|---|---|
| Version | 0.1.5 | 0.0.4 | 1.0.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 2 | 2 | 1 |
| Crate Size | 7KB | 13KB | 28KB |
| Features | 2 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 20.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | 1.37 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •smallest-uint leads with a health score of 47/100, but none of the options score above 80.
- •⚠ smallest-uint, typerat, const-arithmetic have not been updated in over a year.
- •smallest-uint, typerat are pre-1.0 — API may change.