Decision Workspace
repr_cast vs repr-discriminant-derive vs repr_fits
Side-by-side comparison of Rust crates
37
repr_cast
experimentalv0.1.0
A procedural macro that enhances fieldless enums with proper conversions between enum variants and their integer representation types
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
47
repr_fits
experimentalv0.1.0
Compile-time bit-width checks for enum discriminants.
Core Metrics
| repr_cast | repr-discriminant-derive | repr_fits | |
|---|---|---|---|
| Health Score | 37 | 54 | 47 |
| Total Downloads | 50 | 2.4K | 602 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 7 | 0 |
| Releases | 1 | 11 | 1 |
| Last Updated | 319d ago | 10d ago | 77d ago |
| Age | 10m | 11m | 2m |
Health Breakdown
repr_cast
Maintenance
3
Quality
13
Community
6
Popularity
2
Documentation
13
repr-discriminant-derive
Maintenance
18
Quality
12
Community
7
Popularity
4
Documentation
13
repr_fits
Maintenance
9
Quality
14
Community
6
Popularity
3
Documentation
15
Technical Details
| repr_cast | repr-discriminant-derive | repr_fits | |
|---|---|---|---|
| Version | 0.1.0 | 2.0.1 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 4 | 3 | 3 |
| Crate Size | 24KB | 3KB | 5KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 54.5% | 0.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | — | — | 1.85.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •repr-discriminant-derive leads with a health score of 54/100, but none of the options score above 80.
- •repr_cast, repr_fits are pre-1.0 — API may change.