Decision Workspace
discrimenum vs variant_count vs numbered
Side-by-side comparison of Rust crates
35
discrimenum
growingv0.1.0
Derive `Hash` and `PartialEq` on enums where only the discriminant matters.
65
variant_count
stablev1.2.1
Derive macro that adds a variant count to an enum.
51
numbered
experimentalv0.4.0
Derive stable integer numbers for enum variants.
Core Metrics
| discrimenum | variant_count | numbered | |
|---|---|---|---|
| Health Score | 35 | 65 | 51 |
| Total Downloads | 1.7K | 7.8M | 1.5K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 159 | 0 |
| Releases | 1 | 4 | 4 |
| Last Updated | 1648d ago | 92d ago | 49d ago |
| Age | 4y 6m | 7y 11m | 1m |
Health Breakdown
discrimenum
Maintenance
1
Quality
15
Community
5
Popularity
4
Documentation
10
variant_count
Maintenance
13
Quality
20
Community
11
Popularity
8
Documentation
13
numbered
Maintenance
11
Quality
15
Community
6
Popularity
4
Documentation
15
Technical Details
| discrimenum | variant_count | numbered | |
|---|---|---|---|
| Version | 0.1.0 | 1.2.1 | 0.4.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 3 | 4 |
| Crate Size | 9KB | 8KB | 15KB |
| Features | 0 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | — | 1.71.1 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •variant_count leads with a health score of 65/100, but none of the options score above 80.
- •variant_count is depended on by 159 crates — strongest ecosystem trust.
- •⚠ discrimenum has not been updated in over a year.
- •discrimenum, numbered are pre-1.0 — API may change.