Decision Workspace
repr-discriminant vs repr-discriminant-derive vs numbered
Side-by-side comparison of Rust crates
59
repr-discriminant
stablev3.1.1
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
54
repr-discriminant-derive
growingv2.0.1
Derive macro to generate a method to access the discriminant of an enum variant with a repr(T) at runtime
51
numbered
experimentalv0.4.0
Derive stable integer numbers for enum variants.
Core Metrics
| repr-discriminant | repr-discriminant-derive | numbered | |
|---|---|---|---|
| Health Score | 59 | 54 | 51 |
| Total Downloads | 4.1K | 2.4K | 1.5K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 72 | 7 | 0 |
| Releases | 13 | 11 | 4 |
| Last Updated | 10d ago | 10d ago | 49d ago |
| Age | 1y 2m | 11m | 1m |
Health Breakdown
repr-discriminant
Maintenance
18
Quality
14
Community
10
Popularity
4
Documentation
13
repr-discriminant-derive
Maintenance
18
Quality
12
Community
7
Popularity
4
Documentation
13
numbered
Maintenance
11
Quality
15
Community
6
Popularity
4
Documentation
15
Technical Details
| repr-discriminant | repr-discriminant-derive | numbered | |
|---|---|---|---|
| Version | 3.1.1 | 2.0.1 | 0.4.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 4 |
| Crate Size | 3KB | 3KB | 15KB |
| Features | 1 | 0 | 4 |
| Yanked % | 76.9% | 54.5% | 0.0% |
| Edition | 2024 | 2024 | 2021 |
| MSRV | — | — | 1.71.1 |
| 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.
- •numbered is pre-1.0 — API may change.