Decision Workspace
number-as vs primitive-from vs easy-cast
Side-by-side comparison of Rust crates
51
number-as
growingv1.0.10
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
60
easy-cast
growingv0.5.4
Type conversions which are expected to succeed
Core Metrics
| number-as | primitive-from | easy-cast | |
|---|---|---|---|
| Health Score | 51 | 45 | 60 |
| Total Downloads | 18.1K | 7.1K | 6.0M |
| 30d Downloads | 64 | 38 | 274.1K |
| Dependents | 48 | 30 | 175 |
| Releases | 10 | 3 | 13 |
| Last Updated | 1471d ago | 2423d ago | 127d ago |
| Age | 7y 6m | 6y 7m | 5y |
Health Breakdown
number-as
Maintenance
5
Quality
21
Community
10
Popularity
5
Documentation
10
primitive-from
Maintenance
3
Quality
21
Community
7
Popularity
5
Documentation
9
easy-cast
Maintenance
10
Quality
18
Community
9
Popularity
8
Documentation
15
Technical Details
| number-as | primitive-from | easy-cast | |
|---|---|---|---|
| Version | 1.0.10 | 1.0.2 | 0.5.4 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT/Apache-2.0 | Apache-2.0 |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 2KB | 2KB | 18KB |
| Features | 0 | 0 | 8 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 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.
- •⚠ number-as, primitive-from have not been updated in over a year.
- •easy-cast is pre-1.0 — API may change.