Decision Workspace
choice vs sum_type vs parse-variants
Side-by-side comparison of Rust crates
46
choice
growingv0.0.2
Similar to `either` but supports an unbounded number of variants.
41
sum_type
growingv0.2.0
A convenience macro for creating a wrapper enum which may be one of several distinct types.
54
parse-variants
growingv1.0.8
Derive the syn::parse::Parse trait for enumerations and use it to comfortably parse a variant of the enumeration
Core Metrics
| choice | sum_type | parse-variants | |
|---|---|---|---|
| Health Score | 46 | 41 | 54 |
| Total Downloads | 14.0M | 72.7K | 138.8K |
| 30d Downloads | 616.3K | 1.5K | 12.5K |
| Dependents | 19 | 0 | 175 |
| Releases | 3 | 3 | 11 |
| Last Updated | 1860d ago | 2448d ago | 177d ago |
| Age | 5y 1m | 7y 8m | 4y 9m |
Health Breakdown
choice
Maintenance
4
Quality
15
Community
10
Popularity
8
Documentation
9
sum_type
Maintenance
3
Quality
18
Community
6
Popularity
6
Documentation
8
parse-variants
Maintenance
8
Quality
19
Community
11
Popularity
6
Documentation
10
Technical Details
| choice | sum_type | parse-variants | |
|---|---|---|---|
| Version | 0.0.2 | 0.2.0 | 1.0.8 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 1 | 0 | 5 |
| Crate Size | 6KB | 6KB | 7KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | — | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •parse-variants leads with a health score of 54/100, but none of the options score above 80.
- •choice has the most downloads (14.0M), suggesting wider adoption.
- •parse-variants is depended on by 175 crates — strongest ecosystem trust.
- •⚠ choice, sum_type have not been updated in over a year.
- •choice, sum_type are pre-1.0 — API may change.