Decision Workspace
oneof_derive vs oneof vs variant_count
Side-by-side comparison of Rust crates
47
oneof_derive
experimentalv0.2.0
Proc macro implementation for the OneOf derive macro
47
oneof
experimentalv0.2.0
Enum variant projection — access one variant at a time
65
variant_count
stablev1.2.1
Derive macro that adds a variant count to an enum.
Core Metrics
| oneof_derive | oneof | variant_count | |
|---|---|---|---|
| Health Score | 47 | 47 | 65 |
| Total Downloads | 80 | 37 | 7.8M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 2 | 0 | 159 |
| Releases | 2 | 2 | 4 |
| Last Updated | 91d ago | 91d ago | 92d ago |
| Age | 3m | 3m | 7y 11m |
Health Breakdown
oneof_derive
Maintenance
12
Quality
14
Community
6
Popularity
2
Documentation
13
oneof
Maintenance
12
Quality
14
Community
6
Popularity
2
Documentation
13
variant_count
Maintenance
13
Quality
20
Community
11
Popularity
8
Documentation
13
Technical Details
| oneof_derive | oneof | variant_count | |
|---|---|---|---|
| Version | 0.2.0 | 0.2.0 | 1.2.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 3 | 3 |
| Crate Size | 5KB | 14KB | 8KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •variant_count leads with a health score of 65/100, but none of the options score above 80.
- •variant_count is depended on by 159 crates — strongest ecosystem trust.
- •oneof_derive, oneof are pre-1.0 — API may change.