Decision Workspace
enum2str vs enum_stringify vs str_enum
Side-by-side comparison of Rust crates
47
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.
55
enum_stringify
growingv0.6.5
Macro to generate string conversion functions for enums
52
str_enum
experimentalv0.3.2
Simple declarative macro for an enum with associated strings for each variant
Core Metrics
| enum2str | enum_stringify | str_enum | |
|---|---|---|---|
| Health Score | 47 | 55 | 52 |
| Total Downloads | 63.6K | 55.2K | 172 |
| 30d Downloads | 0 | 2.2K | 0 |
| Dependents | 35 | 32 | 5 |
| Releases | 19 | 13 | 5 |
| Last Updated | 279d ago | 64d ago | 126d ago |
| Age | 3y 3m | 2y 10m | 4m |
Health Breakdown
enum2str
Maintenance
8
Quality
16
Community
7
Popularity
6
Documentation
10
enum_stringify
Maintenance
15
Quality
14
Community
7
Popularity
6
Documentation
13
str_enum
Maintenance
12
Quality
15
Community
7
Popularity
3
Documentation
15
Technical Details
| enum2str | enum_stringify | str_enum | |
|---|---|---|---|
| Version | 0.1.18 | 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 | 7KB | 18KB | 14KB |
| Features | 1 | 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 55/100, but none of the options score above 80.
- •enum2str has the most downloads (63.6K), suggesting wider adoption.