Decision Workspace
str_enum vs enum2str vs enum_stringify
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
50
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.
49
enum_stringify
growingv0.6.4
Macro to generate string conversion functions for enums
Core Metrics
| str_enum | enum2str | enum_stringify | |
|---|---|---|---|
| Health Score | 49 | 50 | 49 |
| Total Downloads | 74 | 62.8K | 47.8K |
| 30d Downloads | 74 | 582 | 1.3K |
| Dependents | 0 | 35 | 26 |
| Releases | 5 | 19 | 12 |
| Last Updated | 18d ago | 171d ago | 292d ago |
| Age | 28d | 3y | 2y 6m |
Health Breakdown
str_enum
Maintenance
12
Quality
15
Community
5
Popularity
2
Documentation
15
enum2str
Maintenance
11
Quality
16
Community
7
Popularity
6
Documentation
10
enum_stringify
Maintenance
9
Quality
14
Community
7
Popularity
6
Documentation
13
Technical Details
| str_enum | enum2str | enum_stringify | |
|---|---|---|---|
| Version | 0.3.2 | 0.1.18 | 0.6.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 4 | 3 | 5 |
| Crate Size | 14KB | 7KB | 17KB |
| Features | 3 | 1 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.87 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum2str leads with a health score of 50/100, but none of the options score above 80.