Decision Workspace
enum-repr-derive vs enum-try-from vs num_enum
Side-by-side comparison of Rust crates
41
enum-repr-derive
growingv0.2.0
Simple trait for converting enum to and from its primitive repr type
35
enum-try-from
growingv0.0.1
Rust macros which create enums with TryFrom trait implementations
67
num_enum
growingv0.7.6
Procedural macros to make inter-operation between primitives and enums easier.
Core Metrics
| enum-repr-derive | enum-try-from | num_enum | |
|---|---|---|---|
| Health Score | 41 | 35 | 67 |
| Total Downloads | 174.2K | 34.4K | 179.9M |
| 30d Downloads | 21.9K | 2.4K | 12.6M |
| Dependents | 42 | 1 | 11.5K |
| Releases | 7 | 1 | 33 |
| Last Updated | 1703d ago | 1221d ago | 12d ago |
| Age | 6y 2m | 3y 4m | 7y 4m |
Health Breakdown
enum-repr-derive
Maintenance
4
Quality
10
Community
9
Popularity
6
Documentation
12
enum-try-from
Maintenance
1
Quality
15
Community
4
Popularity
5
Documentation
10
num_enum
Maintenance
18
Quality
15
Community
14
Popularity
8
Documentation
12
Technical Details
| enum-repr-derive | enum-try-from | num_enum | |
|---|---|---|---|
| Version | 0.2.0 | 0.0.1 | 0.7.6 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | BSD-3-Clause OR MIT OR Apache-2.0 |
| Dependencies | 6 | 1 | 6 |
| Crate Size | 4KB | 4KB | 22KB |
| Features | 0 | 0 | 4 |
| Yanked % | 14.3% | 0.0% | 3.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | — | 1.70.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •num_enum leads with a health score of 67/100, but none of the options score above 80.
- •num_enum is depended on by 11.5K crates — strongest ecosystem trust.
- •⚠ enum-repr-derive, enum-try-from have not been updated in over a year.