Decision Workspace
assert_enum_variants vs enum-iterator vs enum-iterator-derive
Side-by-side comparison of Rust crates
53
assert_enum_variants
experimentalv0.1.2
A Rust macro that asserts that all variants of an enum are as provided in the macro invocation.
63
enum-iterator
growingv2.3.0
Tools to iterate over all values of a type (e.g. all variants of an enumeration)
60
enum-iterator-derive
growingv1.5.0
Procedural macro to derive Sequence
Core Metrics
| assert_enum_variants | enum-iterator | enum-iterator-derive | |
|---|---|---|---|
| Health Score | 53 | 63 | 60 |
| Total Downloads | 11.0K | 40.4M | 40.6M |
| 30d Downloads | 3.6K | 2.1M | 2.0M |
| Dependents | 49 | 4.2K | 261 |
| Releases | 3 | 26 | 23 |
| Last Updated | 346d ago | 200d ago | 200d ago |
| Age | 11m | 7y 9m | 8y 2m |
Health Breakdown
assert_enum_variants
Maintenance
9
Quality
15
Community
11
Popularity
5
Documentation
13
enum-iterator
Maintenance
10
Quality
20
Community
12
Popularity
8
Documentation
13
enum-iterator-derive
Maintenance
9
Quality
20
Community
10
Popularity
8
Documentation
13
Technical Details
| assert_enum_variants | enum-iterator | enum-iterator-derive | |
|---|---|---|---|
| Version | 0.1.2 | 2.3.0 | 1.5.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | 0BSD | 0BSD |
| Dependencies | 0 | 1 | 3 |
| Crate Size | 3KB | 8KB | 7KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum-iterator leads with a health score of 63/100, but none of the options score above 80.
- •enum-iterator-derive has the most downloads (40.6M), suggesting wider adoption.
- •enum-iterator is depended on by 4.2K crates — strongest ecosystem trust.
- •assert_enum_variants is pre-1.0 — API may change.