Decision Workspace
explicit_cast vs num-conv vs cast
Side-by-side comparison of Rust crates
43
explicit_cast
growingv1.0.0
A crate for explicit widening, truncating, and sign casting of primitive integers
64
num-conv
growingv0.2.1
`num_conv` is a crate to convert between integer types without using `as` casts. This provides better certainty when refactoring, makes the exact behavior of code more explicit, and allows using turbofish syntax.
47
cast
growingv0.3.0
Ergonomic, checked cast functions for primitive types
Core Metrics
| explicit_cast | num-conv | cast | |
|---|---|---|---|
| Health Score | 43 | 64 | 47 |
| Total Downloads | 22.6K | 281.1M | 160.7M |
| 30d Downloads | 900 | 31.9M | 11.4M |
| Dependents | 0 | 45 | 1.8K |
| Releases | 1 | 3 | 10 |
| Last Updated | 842d ago | 3d ago | 1665d ago |
| Age | 2y 3m | 2y 3m | 10y 1m |
Health Breakdown
explicit_cast
Maintenance
1
Quality
21
Community
6
Popularity
5
Documentation
10
num-conv
Maintenance
17
Quality
16
Community
11
Popularity
8
Documentation
12
cast
Maintenance
3
Quality
12
Community
12
Popularity
8
Documentation
12
Technical Details
| explicit_cast | num-conv | cast | |
|---|---|---|---|
| Version | 1.0.0 | 0.2.1 | 0.3.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | Apache-2.0 OR MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 8KB | 7KB | 11KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 10.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | 1.57.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •num-conv leads with a health score of 64/100, but none of the options score above 80.
- •cast is depended on by 1.8K crates — strongest ecosystem trust.
- •⚠ explicit_cast, cast have not been updated in over a year.
- •num-conv, cast are pre-1.0 — API may change.