Decision Workspace
str_enum vs enum_stringify vs enum2str
Side-by-side comparison of Rust crates
49
str_enum
experimentalv0.3.2
Simple declarative macro for an enum with associated strings for each variant
53
enum_stringify
growingv0.6.5
Macro to generate string conversion functions for enums
46
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 | 49 | 53 | 46 |
| Total Downloads | 250 | 64.4K | 66.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 5 | 53 | 35 |
| Releases | 5 | 13 | 19 |
| Last Updated | 214d ago | 152d ago | 367d ago |
| Age | 7m | 3y | 3y 6m |
Health Breakdown
str_enum
Maintenance
9
Quality
15
Community
7
Popularity
3
Documentation
15
enum_stringify
Maintenance
12
Quality
14
Community
8
Popularity
6
Documentation
13
enum2str
Maintenance
7
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 53/100, but none of the options score above 80.
- •enum2str has the most downloads (66.8K), suggesting wider adoption.
- •⚠ enum2str has not been updated in over a year.