Decision Workspace
try-from-discrim vs num_enum vs indexed_valued_enums_derive
Side-by-side comparison of Rust crates
43
try-from-discrim
growingv1.0.0
#[derive(TryFrom / From)] using enum discriminants, with fallback support.
67
num_enum
growingv0.7.6
Procedural macros to make inter-operation between primitives and enums easier.
50
indexed_valued_enums_derive
growingv2.0.0
Derive macro for the indexed_valued_enums crate.
Core Metrics
| try-from-discrim | num_enum | indexed_valued_enums_derive | |
|---|---|---|---|
| Health Score | 43 | 67 | 50 |
| Total Downloads | 5.4K | 179.9M | 2.3K |
| 30d Downloads | 89 | 13.1M | 45 |
| Dependents | 5 | 11.5K | 4 |
| Releases | 1 | 33 | 2 |
| Last Updated | 1275d ago | 12d ago | 96d ago |
| Age | 3y 6m | 7y 4m | 2y |
Health Breakdown
try-from-discrim
Maintenance
1
Quality
20
Community
8
Popularity
4
Documentation
10
num_enum
Maintenance
18
Quality
15
Community
14
Popularity
8
Documentation
12
indexed_valued_enums_derive
Maintenance
11
Quality
20
Community
7
Popularity
4
Documentation
8
Technical Details
| try-from-discrim | num_enum | indexed_valued_enums_derive | |
|---|---|---|---|
| Version | 1.0.0 | 0.7.6 | 2.0.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MPL-2.0 | BSD-3-Clause OR MIT OR Apache-2.0 | non-standard |
| Dependencies | 3 | 6 | 6 |
| Crate Size | 11KB | 22KB | 22KB |
| Features | 0 | 4 | 1 |
| Yanked % | 0.0% | 3.0% | 0.0% |
| Edition | 2021 | 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.
- •⚠ try-from-discrim has not been updated in over a year.
- •num_enum is pre-1.0 — API may change.