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
36
enum-try-from
growingv0.0.1
Rust macros which create enums with TryFrom trait implementations
60
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 | 36 | 60 |
| Total Downloads | 274.1K | 42.6K | 289.8M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 42 | 1 | 14.5K |
| Releases | 7 | 1 | 33 |
| Last Updated | 1900d ago | 1417d ago | 208d ago |
| Age | 6y 8m | 3y 10m | 7y 11m |
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
6
Documentation
10
num_enum
Maintenance
11
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 60/100, but none of the options score above 80.
- •num_enum is depended on by 14.5K crates — strongest ecosystem trust.
- •⚠ enum-repr-derive, enum-try-from have not been updated in over a year.