Decision Workspace
union_type vs unit-enum vs tyenum
Side-by-side comparison of Rust crates
38
union_type
growingv0.1.0
A proc macro to introduce union type into rust
59
unit-enum
stablev1.5.0
A procedural macro for deriving ordinal methods in unit-like enums for Rust.
38
tyenum
growingv0.5.0
Attribute macro for type enums.
Core Metrics
| union_type | unit-enum | tyenum | |
|---|---|---|---|
| Health Score | 38 | 59 | 38 |
| Total Downloads | 4.5K | 7.8K | 6.6K |
| 30d Downloads | 5 | 62 | 20 |
| Dependents | 0 | 2 | 0 |
| Releases | 3 | 9 | 4 |
| Last Updated | 1981d ago | 23d ago | 2534d ago |
| Age | 5y 5m | 2y | 6y 11m |
Health Breakdown
union_type
Maintenance
4
Quality
15
Community
3
Popularity
4
Documentation
12
unit-enum
Maintenance
18
Quality
20
Community
4
Popularity
5
Documentation
12
tyenum
Maintenance
4
Quality
15
Community
5
Popularity
5
Documentation
9
Technical Details
| union_type | unit-enum | tyenum | |
|---|---|---|---|
| Version | 0.1.0 | 1.5.0 | 0.5.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Unlicense | MIT OR Apache-2.0 | MIT |
| Dependencies | 3 | 3 | 1 |
| Crate Size | 5KB | 15KB | 2KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2018 |
| MSRV | — | 1.71 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •unit-enum leads with a health score of 59/100, but none of the options score above 80.
- •⚠ union_type, tyenum have not been updated in over a year.
- •union_type, tyenum are pre-1.0 — API may change.