Decision Workspace
indexed_valued_enums vs indexed_valued_enums_derive vs repr-discriminant
Side-by-side comparison of Rust crates
44
indexed_valued_enums
growingv2.0.0
Create enums resolving into values, and get their variants back through their values, their discriminant or their name; inspired by Java.
45
indexed_valued_enums_derive
growingv2.0.0
Derive macro for the indexed_valued_enums crate.
59
repr-discriminant
stablev3.1.1
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
Core Metrics
| indexed_valued_enums | indexed_valued_enums_derive | repr-discriminant | |
|---|---|---|---|
| Health Score | 44 | 45 | 59 |
| Total Downloads | 10.9K | 2.5K | 4.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 4 | 72 |
| Releases | 9 | 2 | 13 |
| Last Updated | 292d ago | 292d ago | 10d ago |
| Age | 2y 10m | 2y 7m | 1y 2m |
Health Breakdown
indexed_valued_enums
Maintenance
8
Quality
17
Community
6
Popularity
5
Documentation
8
indexed_valued_enums_derive
Maintenance
6
Quality
20
Community
7
Popularity
4
Documentation
8
repr-discriminant
Maintenance
18
Quality
14
Community
10
Popularity
4
Documentation
13
Technical Details
| indexed_valued_enums | indexed_valued_enums_derive | repr-discriminant | |
|---|---|---|---|
| Version | 2.0.0 | 2.0.0 | 3.1.1 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | non-standard | non-standard | MIT |
| Dependencies | 3 | 6 | 1 |
| Crate Size | 17KB | 22KB | 3KB |
| Features | 7 | 1 | 1 |
| Yanked % | 44.4% | 0.0% | 76.9% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •repr-discriminant leads with a health score of 59/100, but none of the options score above 80.
- •indexed_valued_enums has the most downloads (10.9K), suggesting wider adoption.