Decision Workspace
loose_enum vs repr-discriminant vs repr-discriminant-derive
Side-by-side comparison of Rust crates
48
loose_enum
experimentalv0.1.0
A macro for defining loose repr enums.
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
Core Metrics
| loose_enum | repr-discriminant | repr-discriminant-derive | |
|---|---|---|---|
| Health Score | 48 | 49 | 47 |
| Total Downloads | 254 | 2.8K | 1.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 7 | 38 | 6 |
| Releases | 3 | 12 | 10 |
| Last Updated | 209d ago | 241d ago | 241d ago |
| Age | 7m | 12m | 8m |
Health Breakdown
loose_enum
Maintenance
11
Quality
16
Community
8
Popularity
3
Documentation
10
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
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
- •repr-discriminant leads with a health score of 49/100, but none of the options score above 80.
- •loose_enum is pre-1.0 — API may change.