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.
52
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 | 52 |
| Total Downloads | 14.2M | 78.8K | 210.8K |
| 30d Downloads | 66.5K | 1.2K | 12.0K |
| Dependents | 19 | 0 | 181 |
| Releases | 3 | 3 | 11 |
| Last Updated | 1968d ago | 2556d ago | 285d ago |
| Age | 5y 5m | 7y 11m | 5y 1m |
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
6
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 52/100, but none of the options score above 80.
- •choice has the most downloads (14.2M), suggesting wider adoption.
- •parse-variants is depended on by 181 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.