Decision Workspace
derive-try-from-primitive vs enum-primitive-derive vs enum-tools
Side-by-side comparison of Rust crates
51
derive-try-from-primitive
growingv1.0.0
Custom derive a try_from method for primitive to enum conversions
47
enum-primitive-derive
growingv0.3.0
enum_primitive implementation using procedural macros to have a custom derive
45
enum-tools
growingv0.5.5
Automatically derive functions and trait implementations for enums
Core Metrics
| derive-try-from-primitive | enum-primitive-derive | enum-tools | |
|---|---|---|---|
| Health Score | 51 | 47 | 45 |
| Total Downloads | 4.8M | 8.9M | 8.8K |
| 30d Downloads | 369.2K | 442.5K | 104 |
| Dependents | 54 | 668 | 10 |
| Releases | 2 | 7 | 6 |
| Last Updated | 2189d ago | 857d ago | 423d ago |
| Age | 8y 8m | 8y 7m | 3y 5m |
Health Breakdown
derive-try-from-primitive
Maintenance
3
Quality
20
Community
8
Popularity
8
Documentation
12
enum-primitive-derive
Maintenance
4
Quality
11
Community
13
Popularity
8
Documentation
11
enum-tools
Maintenance
6
Quality
14
Community
8
Popularity
5
Documentation
12
Technical Details
| derive-try-from-primitive | enum-primitive-derive | enum-tools | |
|---|---|---|---|
| Version | 1.0.0 | 0.3.0 | 0.5.5 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT/Apache-2.0 | MIT | MIT |
| Dependencies | 3 | 3 | 5 |
| Crate Size | 3KB | 5KB | 29KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 14.3% | 0.0% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | 1.56 | 1.58.1 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •derive-try-from-primitive leads with a health score of 51/100, but none of the options score above 80.
- •enum-primitive-derive has the most downloads (8.9M), suggesting wider adoption.
- •enum-primitive-derive is depended on by 668 crates — strongest ecosystem trust.
- •⚠ derive-try-from-primitive, enum-primitive-derive, enum-tools have not been updated in over a year.
- •enum-primitive-derive, enum-tools are pre-1.0 — API may change.