Decision Workspace
repr-discriminant-derive vs repr-discriminant vs repr_fits
Side-by-side comparison of Rust crates
54
repr-discriminant-derive
growingv2.0.1
Derive macro to generate a method to access the discriminant of an enum variant with a repr(T) at runtime
59
repr-discriminant
stablev3.1.1
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
47
repr_fits
experimentalv0.1.0
Compile-time bit-width checks for enum discriminants.
Core Metrics
| repr-discriminant-derive | repr-discriminant | repr_fits | |
|---|---|---|---|
| Health Score | 54 | 59 | 47 |
| Total Downloads | 2.4K | 4.1K | 602 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 7 | 72 | 0 |
| Releases | 11 | 13 | 1 |
| Last Updated | 10d ago | 10d ago | 77d ago |
| Age | 11m | 1y 2m | 2m |
Health Breakdown
repr-discriminant-derive
Maintenance
18
Quality
12
Community
7
Popularity
4
Documentation
13
repr-discriminant
Maintenance
18
Quality
14
Community
10
Popularity
4
Documentation
13
repr_fits
Maintenance
9
Quality
14
Community
6
Popularity
3
Documentation
15
Technical Details
| repr-discriminant-derive | repr-discriminant | repr_fits | |
|---|---|---|---|
| Version | 2.0.1 | 3.1.1 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 3 | 1 | 3 |
| Crate Size | 3KB | 3KB | 5KB |
| Features | 0 | 1 | 0 |
| Yanked % | 54.5% | 76.9% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | 1.85.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •repr-discriminant leads with a health score of 59/100, but none of the options score above 80.
- •repr_fits is pre-1.0 — API may change.