Decision Workspace
repr-discriminant-derive vs repr-discriminant vs enum_ext
Side-by-side comparison of Rust crates
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
49
repr-discriminant
growingv3.0.1
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
49
enum_ext
growingv0.6.0
procedural macro that enhances enums with additional methods and conversions
Core Metrics
| repr-discriminant-derive | repr-discriminant | enum_ext | |
|---|---|---|---|
| Health Score | 47 | 49 | 49 |
| Total Downloads | 1.1K | 2.8K | 12.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 6 | 38 | 1 |
| Releases | 10 | 12 | 17 |
| Last Updated | 241d ago | 241d ago | 113d ago |
| Age | 8m | 12m | 2y 2m |
Health Breakdown
repr-discriminant-derive
Maintenance
11
Quality
12
Community
7
Popularity
4
Documentation
13
repr-discriminant
Maintenance
10
Quality
13
Community
9
Popularity
4
Documentation
13
enum_ext
Maintenance
13
Quality
12
Community
7
Popularity
5
Documentation
12
Technical Details
| repr-discriminant-derive | repr-discriminant | enum_ext | |
|---|---|---|---|
| Version | 2.0.0 | 3.0.1 | 0.6.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 3 | 1 | 5 |
| Crate Size | 3KB | 3KB | 40KB |
| Features | 0 | 1 | 2 |
| Yanked % | 60.0% | 83.3% | 11.8% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | 1.85 |
| 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_ext has the most downloads (12.1K), suggesting wider adoption.
- •enum_ext is pre-1.0 — API may change.