Decision Workspace
enumcapsulate vs enum-assoc vs variant_count
Side-by-side comparison of Rust crates
50
enumcapsulate
growingv0.6.3
Safe casting for newtype enums and their variants
62
enum-assoc
stablev1.3.0
Procedural macro to associate constants with enum variants.
57
variant_count
growingv1.2.0
Derive macro for enum which adds to it the count of variants.
Core Metrics
| enumcapsulate | enum-assoc | variant_count | |
|---|---|---|---|
| Health Score | 50 | 62 | 57 |
| Total Downloads | 10.2K | 1.4M | 6.0M |
| 30d Downloads | 88 | 173.2K | 259.1K |
| Dependents | 0 | 61 | 135 |
| Releases | 10 | 26 | 3 |
| Last Updated | 309d ago | 89d ago | 280d ago |
| Age | 2y 2m | 4y 1m | 7y 4m |
Health Breakdown
enumcapsulate
Maintenance
8
Quality
17
Community
5
Popularity
5
Documentation
15
enum-assoc
Maintenance
14
Quality
17
Community
11
Popularity
7
Documentation
13
variant_count
Maintenance
5
Quality
20
Community
11
Popularity
8
Documentation
13
Technical Details
| enumcapsulate | enum-assoc | variant_count | |
|---|---|---|---|
| Version | 0.6.3 | 1.3.0 | 1.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MPL-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 2 | 3 | 3 |
| Crate Size | 30KB | 9KB | 4KB |
| Features | 3 | 0 | 0 |
| Yanked % | 0.0% | 7.7% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.78.0 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum-assoc leads with a health score of 62/100, but none of the options score above 80.
- •variant_count has the most downloads (6.0M), suggesting wider adoption.
- •variant_count is depended on by 135 crates — strongest ecosystem trust.
- •enumcapsulate is pre-1.0 — API may change.