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.
67
num_enum
growingv0.7.6
Procedural macros to make inter-operation between primitives and enums easier.
49
enum_stringify
growingv0.6.4
Macro to generate string conversion functions for enums
Core Metrics
| cstr-enum | num_enum | enum_stringify | |
|---|---|---|---|
| Health Score | 43 | 67 | 49 |
| Total Downloads | 11.8K | 179.9M | 47.8K |
| 30d Downloads | 271 | 13.1M | 1.3K |
| Dependents | 14 | 11.5K | 26 |
| Releases | 1 | 33 | 12 |
| Last Updated | 1870d ago | 12d ago | 292d ago |
| Age | 5y 1m | 7y 4m | 2y 6m |
Health Breakdown
cstr-enum
Maintenance
1
Quality
20
Community
8
Popularity
5
Documentation
9
num_enum
Maintenance
18
Quality
15
Community
14
Popularity
8
Documentation
12
enum_stringify
Maintenance
9
Quality
14
Community
7
Popularity
6
Documentation
13
Technical Details
| cstr-enum | num_enum | enum_stringify | |
|---|---|---|---|
| Version | 1.0.0 | 0.7.6 | 0.6.4 |
| 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 | 17KB |
| 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 67/100, but none of the options score above 80.
- •num_enum is depended on by 11.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.