Decision Workspace
enum-repr vs repr-discriminant vs repr-discriminant-derive
Side-by-side comparison of Rust crates
46
enum-repr
growingv0.2.6
Derive enum repr conversions compatible with type aliases.
48
repr-discriminant
growingv3.0.1
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
48
repr-discriminant-derive
experimentalv2.0.0
Derive macro to generate a method to access the discriminant of an enum variant with a repr(T) at runtime
Core Metrics
| enum-repr | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Health Score | 46 | 48 | 48 |
| Total Downloads | 1.5M | 2.3K | 565 |
| 30d Downloads | 5.4K | 51 | 66 |
| Dependents | 86 | 0 | 6 |
| Releases | 10 | 12 | 10 |
| Last Updated | 2230d ago | 133d ago | 133d ago |
| Age | 7y 8m | 8m | 4m |
Health Breakdown
enum-repr
Maintenance
5
Quality
14
Community
11
Popularity
7
Documentation
9
repr-discriminant
Maintenance
13
Quality
13
Community
5
Popularity
4
Documentation
13
repr-discriminant-derive
Maintenance
14
Quality
11
Community
7
Popularity
3
Documentation
13
Technical Details
| enum-repr | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Version | 0.2.6 | 3.0.1 | 2.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 4 | 1 | 3 |
| Crate Size | 9KB | 3KB | 3KB |
| Features | 0 | 1 | 0 |
| Yanked % | 0.0% | 83.3% | 60.0% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •repr-discriminant leads with a health score of 48/100, but none of the options score above 80.
- •enum-repr has the most downloads (1.5M), suggesting wider adoption.
- •⚠ enum-repr has not been updated in over a year.
- •enum-repr is pre-1.0 — API may change.