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.
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
| enum-repr | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Health Score | 46 | 59 | 54 |
| Total Downloads | 1.5M | 4.1K | 2.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 96 | 72 | 7 |
| Releases | 10 | 13 | 11 |
| Last Updated | 2426d ago | 10d ago | 10d ago |
| Age | 8y 2m | 1y 2m | 11m |
Health Breakdown
enum-repr
Maintenance
5
Quality
14
Community
11
Popularity
7
Documentation
9
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
| enum-repr | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Version | 0.2.6 | 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 | 9KB | 3KB | 3KB |
| Features | 0 | 1 | 0 |
| Yanked % | 0.0% | 76.9% | 54.5% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | — | — |
| 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.
- •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.