Decision Workspace
loose_enum vs repr-discriminant vs repr-discriminant-derive
Side-by-side comparison of Rust crates
51
loose_enum
experimentalv0.1.0
A macro for defining loose repr enums.
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
Core Metrics
| loose_enum | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Health Score | 51 | 48 | 48 |
| Total Downloads | 181 | 2.3K | 565 |
| 30d Downloads | 25 | 51 | 66 |
| Dependents | 6 | 0 | 6 |
| Releases | 3 | 12 | 10 |
| Last Updated | 101d ago | 133d ago | 133d ago |
| Age | 3m | 8m | 4m |
Health Breakdown
loose_enum
Maintenance
14
Quality
16
Community
8
Popularity
3
Documentation
10
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
Technical Details
| loose_enum | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Version | 0.1.0 | 3.0.1 | 2.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 2 | 1 | 3 |
| Crate Size | 10KB | 3KB | 3KB |
| Features | 3 | 1 | 0 |
| Yanked % | 0.0% | 83.3% | 60.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •loose_enum leads with a health score of 51/100, but none of the options score above 80.
- •repr-discriminant has the most downloads (2.3K), suggesting wider adoption.
- •loose_enum is pre-1.0 — API may change.