Decision Workspace
str_enum vs enum_stringify vs enum2str
Side-by-side comparison of Rust crates
48
str_enum
experimentalv0.3.2
Simple declarative macro for an enum with associated strings for each variant
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
| str_enum | enum_stringify | enum2str | |
|---|---|---|---|
| Health Score | 48 | 58 | 48 |
| Total Downloads | 111 | 51.0K | 63.1K |
| 30d Downloads | 0 | 1.7K | 0 |
| Dependents | 4 | 30 | 35 |
| Releases | 5 | 13 | 19 |
| Last Updated | 77d ago | 15d ago | 230d ago |
| Age | 2m | 2y 8m | 3y 2m |
Health Breakdown
str_enum
Maintenance
9
Quality
15
Community
7
Popularity
2
Documentation
15
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
| str_enum | enum_stringify | enum2str | |
|---|---|---|---|
| Version | 0.3.2 | 0.6.5 | 0.1.18 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 5 | 3 |
| Crate Size | 14KB | 18KB | 7KB |
| Features | 3 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.87 | — | — |
| 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.