Decision Workspace
tyenum vs sum_type vs union_type
Side-by-side comparison of Rust crates
38
tyenum
growingv0.5.0
Attribute macro for type enums.
41
sum_type
growingv0.2.0
A convenience macro for creating a wrapper enum which may be one of several distinct types.
38
union_type
growingv0.1.0
A proc macro to introduce union type into rust
Core Metrics
| tyenum | sum_type | union_type | |
|---|---|---|---|
| Health Score | 38 | 41 | 38 |
| Total Downloads | 6.6K | 72.7K | 4.5K |
| 30d Downloads | 20 | 1.5K | 5 |
| Dependents | 0 | 0 | 0 |
| Releases | 4 | 3 | 3 |
| Last Updated | 2534d ago | 2448d ago | 1981d ago |
| Age | 6y 11m | 7y 8m | 5y 5m |
Health Breakdown
tyenum
Maintenance
4
Quality
15
Community
5
Popularity
5
Documentation
9
sum_type
Maintenance
3
Quality
18
Community
6
Popularity
6
Documentation
8
union_type
Maintenance
4
Quality
15
Community
3
Popularity
4
Documentation
12
Technical Details
| tyenum | sum_type | union_type | |
|---|---|---|---|
| Version | 0.5.0 | 0.2.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | Unlicense |
| Dependencies | 1 | 0 | 3 |
| Crate Size | 2KB | 6KB | 5KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | — | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •sum_type leads with a health score of 41/100, but none of the options score above 80.
- •⚠ tyenum, sum_type, union_type have not been updated in over a year.