Decision Workspace
repr-discriminant vs repr-discriminant-derive vs enum-repr
Side-by-side comparison of Rust crates
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
46
enum-repr
growingv0.2.6
Derive enum repr conversions compatible with type aliases.
Core Metrics
| repr-discriminant | repr-discriminant-derive | enum-repr | |
|---|---|---|---|
| Health Score | 48 | 48 | 46 |
| Total Downloads | 2.3K | 565 | 1.5M |
| 30d Downloads | 51 | 67 | 5.6K |
| Dependents | 0 | 6 | 86 |
| Releases | 12 | 10 | 10 |
| Last Updated | 133d ago | 133d ago | 2230d ago |
| Age | 8m | 4m | 7y 8m |
Health Breakdown
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
enum-repr
Maintenance
5
Quality
14
Community
11
Popularity
7
Documentation
9
Technical Details
| repr-discriminant | repr-discriminant-derive | enum-repr | |
|---|---|---|---|
| Version | 3.0.1 | 2.0.0 | 0.2.6 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 4 |
| Crate Size | 3KB | 3KB | 9KB |
| Features | 1 | 0 | 0 |
| Yanked % | 83.3% | 60.0% | 0.0% |
| Edition | 2024 | 2024 | 2018 |
| 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.