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