Decision Workspace
cstr-enum vs num_enum vs enum_stringify
Side-by-side comparison of Rust crates
43
cstr-enum
growingv1.0.0
A crate for defining C-style string enums.
60
num_enum
growingv0.7.6
Procedural macros to make inter-operation between primitives and enums easier.
53
enum_stringify
growingv0.6.5
Macro to generate string conversion functions for enums
Core Metrics
| cstr-enum | num_enum | enum_stringify | |
|---|---|---|---|
| Health Score | 43 | 60 | 53 |
| Total Downloads | 14.6K | 289.8M | 64.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 15 | 14.5K | 53 |
| Releases | 1 | 33 | 13 |
| Last Updated | 2066d ago | 208d ago | 152d ago |
| Age | 5y 8m | 7y 11m | 3y |
Health Breakdown
cstr-enum
Maintenance
1
Quality
20
Community
8
Popularity
5
Documentation
9
num_enum
Maintenance
11
Quality
15
Community
14
Popularity
8
Documentation
12
enum_stringify
Maintenance
12
Quality
14
Community
8
Popularity
6
Documentation
13
Technical Details
| cstr-enum | num_enum | enum_stringify | |
|---|---|---|---|
| Version | 1.0.0 | 0.7.6 | 0.6.5 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | BSD-3-Clause OR MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 2 | 6 | 5 |
| Crate Size | 4KB | 22KB | 18KB |
| Features | 0 | 4 | 0 |
| Yanked % | 0.0% | 3.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.70.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •num_enum leads with a health score of 60/100, but none of the options score above 80.
- •num_enum is depended on by 14.5K crates — strongest ecosystem trust.
- •⚠ cstr-enum has not been updated in over a year.
- •num_enum, enum_stringify are pre-1.0 — API may change.