Decision Workspace
repr-discriminant vs repr-discriminant-derive vs enum-repr
Side-by-side comparison of Rust crates
49
repr-discriminant
growingv3.0.1
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
47
repr-discriminant-derive
growingv2.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 | 49 | 47 | 46 |
| Total Downloads | 2.8K | 1.1K | 1.5M |
| 30d Downloads | 0 | 0 | 4.2K |
| Dependents | 38 | 6 | 92 |
| Releases | 12 | 10 | 10 |
| Last Updated | 241d ago | 241d ago | 2338d ago |
| Age | 12m | 8m | 7y 12m |
Health Breakdown
repr-discriminant
Maintenance
10
Quality
13
Community
9
Popularity
4
Documentation
13
repr-discriminant-derive
Maintenance
11
Quality
12
Community
7
Popularity
4
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 49/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.