Decision Workspace
discrimenum vs variant_count vs indexed_valued_enums_derive
Side-by-side comparison of Rust crates
35
discrimenum
growingv0.1.0
Derive `Hash` and `PartialEq` on enums where only the discriminant matters.
57
variant_count
growingv1.2.0
Derive macro for enum which adds to it the count of variants.
50
indexed_valued_enums_derive
growingv2.0.0
Derive macro for the indexed_valued_enums crate.
Core Metrics
| discrimenum | variant_count | indexed_valued_enums_derive | |
|---|---|---|---|
| Health Score | 35 | 57 | 50 |
| Total Downloads | 1.7K | 6.0M | 2.3K |
| 30d Downloads | 4 | 259.1K | 43 |
| Dependents | 0 | 135 | 4 |
| Releases | 1 | 3 | 2 |
| Last Updated | 1451d ago | 280d ago | 96d ago |
| Age | 3y 11m | 7y 4m | 2y |
Health Breakdown
discrimenum
Maintenance
1
Quality
15
Community
5
Popularity
4
Documentation
10
variant_count
Maintenance
5
Quality
20
Community
11
Popularity
8
Documentation
13
indexed_valued_enums_derive
Maintenance
11
Quality
20
Community
7
Popularity
4
Documentation
8
Technical Details
| discrimenum | variant_count | indexed_valued_enums_derive | |
|---|---|---|---|
| Version | 0.1.0 | 1.2.0 | 2.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | non-standard |
| Dependencies | 3 | 3 | 6 |
| Crate Size | 9KB | 4KB | 22KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •variant_count leads with a health score of 57/100, but none of the options score above 80.
- •variant_count is depended on by 135 crates — strongest ecosystem trust.
- •⚠ discrimenum has not been updated in over a year.
- •discrimenum is pre-1.0 — API may change.