Decision Workspace
enum2pos vs enum_stringify vs str_enum
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).
53
enum_stringify
growingv0.6.5
Macro to generate string conversion functions for enums
49
str_enum
experimentalv0.3.2
Simple declarative macro for an enum with associated strings for each variant
Core Metrics
| enum2pos | enum_stringify | str_enum | |
|---|---|---|---|
| Health Score | 37 | 53 | 49 |
| Total Downloads | 30.1K | 64.4K | 250 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 53 | 5 |
| Releases | 3 | 13 | 5 |
| Last Updated | 716d ago | 152d ago | 214d ago |
| Age | 3y 6m | 3y | 7m |
Health Breakdown
enum2pos
Maintenance
4
Quality
15
Community
3
Popularity
5
Documentation
10
enum_stringify
Maintenance
12
Quality
14
Community
8
Popularity
6
Documentation
13
str_enum
Maintenance
9
Quality
15
Community
7
Popularity
3
Documentation
15
Technical Details
| enum2pos | enum_stringify | str_enum | |
|---|---|---|---|
| Version | 0.1.2 | 0.6.5 | 0.3.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 5 | 4 |
| Crate Size | 3KB | 18KB | 14KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | 1.87 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum_stringify leads with a health score of 53/100, but none of the options score above 80.
- •⚠ enum2pos has not been updated in over a year.