Decision Workspace
repr-discriminant-derive vs repr-discriminant vs enum_ext
Side-by-side comparison of Rust crates
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
48
repr-discriminant
growingv3.0.1
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
55
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 | 48 | 48 | 55 |
| Total Downloads | 565 | 2.3K | 11.3K |
| 30d Downloads | 66 | 51 | 266 |
| Dependents | 6 | 0 | 1 |
| Releases | 10 | 12 | 17 |
| Last Updated | 133d ago | 133d ago | 5d ago |
| Age | 4m | 8m | 1y 10m |
Health Breakdown
repr-discriminant-derive
Maintenance
14
Quality
11
Community
7
Popularity
3
Documentation
13
repr-discriminant
Maintenance
13
Quality
13
Community
5
Popularity
4
Documentation
13
enum_ext
Maintenance
19
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
- •enum_ext leads with a health score of 55/100, but none of the options score above 80.
- •enum_ext is pre-1.0 — API may change.