Decision Workspace
enum2pos vs enum_stringify vs enum2str
Side-by-side comparison of Rust crates
37
enum2pos
growingv0.1.2
enum2pos is a rust derive macro for enums that generates "from_index(usize, Vec<String>) -> Option<Self>" and "to_index()" methods for converting between an variants and their position within the enum declaration (similar to an index).
58
enum_stringify
growingv0.6.5
Macro to generate string conversion functions for enums
48
enum2str
growingv0.1.18
enum2str is a rust derive macro that creates a Display impl for enums. This is useful for strongly typing composable sets of strings.
Core Metrics
| enum2pos | enum_stringify | enum2str | |
|---|---|---|---|
| Health Score | 37 | 58 | 48 |
| Total Downloads | 29.8K | 51.0K | 63.1K |
| 30d Downloads | 0 | 1.7K | 0 |
| Dependents | 0 | 30 | 35 |
| Releases | 3 | 13 | 19 |
| Last Updated | 579d ago | 15d ago | 230d ago |
| Age | 3y 2m | 2y 8m | 3y 2m |
Health Breakdown
enum2pos
Maintenance
4
Quality
15
Community
3
Popularity
5
Documentation
10
enum_stringify
Maintenance
18
Quality
14
Community
7
Popularity
6
Documentation
13
enum2str
Maintenance
9
Quality
16
Community
7
Popularity
6
Documentation
10
Technical Details
| enum2pos | enum_stringify | enum2str | |
|---|---|---|---|
| Version | 0.1.2 | 0.6.5 | 0.1.18 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 3 | 5 | 3 |
| Crate Size | 3KB | 18KB | 7KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum_stringify leads with a health score of 58/100, but none of the options score above 80.
- •enum2str has the most downloads (63.1K), suggesting wider adoption.
- •⚠ enum2pos has not been updated in over a year.