Decision Workspace
repr_fits vs repr-discriminant-derive vs repr-discriminant
Side-by-side comparison of Rust crates
47
repr_fits
experimentalv0.1.0
Compile-time bit-width checks for enum discriminants.
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
Core Metrics
| repr_fits | repr-discriminant-derive | repr-discriminant | |
|---|---|---|---|
| Health Score | 47 | 54 | 59 |
| Total Downloads | 602 | 2.4K | 4.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 7 | 72 |
| Releases | 1 | 11 | 13 |
| Last Updated | 77d ago | 10d ago | 10d ago |
| Age | 2m | 11m | 1y 2m |
Health Breakdown
repr_fits
Maintenance
9
Quality
14
Community
6
Popularity
3
Documentation
15
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
Technical Details
| repr_fits | repr-discriminant-derive | repr-discriminant | |
|---|---|---|---|
| Version | 0.1.0 | 2.0.1 | 3.1.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 3 | 3 | 1 |
| Crate Size | 5KB | 3KB | 3KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 54.5% | 76.9% |
| 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.