Decision Workspace
enumcapsulate vs enum-assoc vs variant_count
Side-by-side comparison of Rust crates
56
enumcapsulate
growingv0.6.4
Safe casting for newtype enums and their variants
66
enum-assoc
stablev1.4.1
Procedural macro to associate constants with enum variants.
65
variant_count
stablev1.2.1
Derive macro that adds a variant count to an enum.
Core Metrics
| enumcapsulate | enum-assoc | variant_count | |
|---|---|---|---|
| Health Score | 56 | 66 | 65 |
| Total Downloads | 10.7K | 4.4M | 7.8M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 106 | 159 |
| Releases | 11 | 28 | 4 |
| Last Updated | 68d ago | 51d ago | 92d ago |
| Age | 2y 8m | 4y 7m | 7y 11m |
Health Breakdown
enumcapsulate
Maintenance
14
Quality
17
Community
5
Popularity
5
Documentation
15
enum-assoc
Maintenance
16
Quality
17
Community
12
Popularity
8
Documentation
13
variant_count
Maintenance
13
Quality
20
Community
11
Popularity
8
Documentation
13
Technical Details
| enumcapsulate | enum-assoc | variant_count | |
|---|---|---|---|
| Version | 0.6.4 | 1.4.1 | 1.2.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MPL-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 2 | 3 | 3 |
| Crate Size | 31KB | 10KB | 8KB |
| Features | 3 | 0 | 0 |
| Yanked % | 0.0% | 7.1% | 0.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | 1.78.0 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum-assoc leads with a health score of 66/100, but none of the options score above 80.
- •variant_count has the most downloads (7.8M), suggesting wider adoption.
- •variant_count is depended on by 159 crates — strongest ecosystem trust.
- •enumcapsulate is pre-1.0 — API may change.