Decision Workspace
number-as vs primitive-from vs easy-cast
Side-by-side comparison of Rust crates
59
number-as
growingv1.0.11
Extend primitive number types to make them have a `number_as` method.
45
primitive-from
growingv1.0.2
Provides a trait PrimitiveFrom that is what From is to Into for num_traits::AsPrimitive
66
easy-cast
growingv0.7.1
Type conversions which are expected to succeed
Core Metrics
| number-as | primitive-from | easy-cast | |
|---|---|---|---|
| Health Score | 59 | 45 | 66 |
| Total Downloads | 18.9K | 7.3K | 8.8M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 48 | 30 | 259 |
| Releases | 11 | 3 | 18 |
| Last Updated | 90d ago | 2619d ago | 41d ago |
| Age | 8y 1m | 7y 2m | 5y 6m |
Health Breakdown
number-as
Maintenance
11
Quality
21
Community
10
Popularity
5
Documentation
12
primitive-from
Maintenance
3
Quality
21
Community
7
Popularity
5
Documentation
9
easy-cast
Maintenance
15
Quality
18
Community
10
Popularity
8
Documentation
15
Technical Details
| number-as | primitive-from | easy-cast | |
|---|---|---|---|
| Version | 1.0.11 | 1.0.2 | 0.7.1 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT/Apache-2.0 | Apache-2.0 |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 3KB | 2KB | 26KB |
| Features | 0 | 0 | 7 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2024 |
| MSRV | 1.56 | — | 1.96.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •easy-cast leads with a health score of 66/100, but none of the options score above 80.
- •easy-cast is depended on by 259 crates — strongest ecosystem trust.
- •⚠ primitive-from has not been updated in over a year.
- •easy-cast is pre-1.0 — API may change.