Decision Workspace
enum-ordinalize vs enum-ordinalize-derive vs ordinal-map-derive
Side-by-side comparison of Rust crates
65
enum-ordinalize
growingv4.3.2
This library enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.
63
enum-ordinalize-derive
stablev4.3.2
This crate provides a procedural macro that enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.
57
ordinal-map-derive
growingv0.1.10
Ordinal trait to map values to integers and efficient maps and sets for such types
Core Metrics
| enum-ordinalize | enum-ordinalize-derive | ordinal-map-derive | |
|---|---|---|---|
| Health Score | 65 | 63 | 57 |
| Total Downloads | 59.5M | 41.2M | 1.8M |
| 30d Downloads | 6.4M | 5.2M | 478.7K |
| Dependents | 406 | 16 | 11 |
| Releases | 43 | 15 | 11 |
| Last Updated | 150d ago | 150d ago | 125d ago |
| Age | 7y 6m | 2y 4m | 1y 9m |
Health Breakdown
enum-ordinalize
Maintenance
11
Quality
21
Community
13
Popularity
8
Documentation
12
enum-ordinalize-derive
Maintenance
12
Quality
22
Community
9
Popularity
8
Documentation
12
ordinal-map-derive
Maintenance
13
Quality
15
Community
9
Popularity
7
Documentation
13
Technical Details
| enum-ordinalize | enum-ordinalize-derive | ordinal-map-derive | |
|---|---|---|---|
| Version | 4.3.2 | 4.3.2 | 0.1.10 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 1 | 3 | 3 |
| Crate Size | 4KB | 8KB | 5KB |
| Features | 4 | 2 | 0 |
| Yanked % | 2.3% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.68 | 1.68 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum-ordinalize leads with a health score of 65/100, but none of the options score above 80.
- •enum-ordinalize is depended on by 406 crates — strongest ecosystem trust.
- •ordinal-map-derive is pre-1.0 — API may change.