Decision Workspace
numbered vs repr-discriminant vs repr-discriminant-derive
Side-by-side comparison of Rust crates
51
numbered
experimentalv0.4.0
Derive stable integer numbers for enum variants.
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
Core Metrics
| numbered | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Health Score | 51 | 59 | 54 |
| Total Downloads | 1.5K | 4.1K | 2.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 72 | 7 |
| Releases | 4 | 13 | 11 |
| Last Updated | 49d ago | 10d ago | 10d ago |
| Age | 1m | 1y 2m | 11m |
Health Breakdown
numbered
Maintenance
11
Quality
15
Community
6
Popularity
4
Documentation
15
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
Technical Details
| numbered | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Version | 0.4.0 | 3.1.1 | 2.0.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 4 | 1 | 3 |
| Crate Size | 15KB | 3KB | 3KB |
| Features | 4 | 1 | 0 |
| Yanked % | 0.0% | 76.9% | 54.5% |
| Edition | 2021 | 2024 | 2024 |
| 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.