Decision Workspace
enum-assoc vs table_enum vs named_constants
Side-by-side comparison of Rust crates
62
enum-assoc
stablev1.3.0
Procedural macro to associate constants with enum variants.
37
table_enum
growingv0.3.0
A convenient rust macro to create enums with associated constant data (note: this is different from normal rust enums which are really tagged unions)
39
named_constants
growingv0.2.0
Procedural macro makes enums behave like named constants in languages like C/C++ or C#.
Core Metrics
| enum-assoc | table_enum | named_constants | |
|---|---|---|---|
| Health Score | 62 | 37 | 39 |
| Total Downloads | 1.4M | 8.1K | 5.5K |
| 30d Downloads | 173.2K | 67 | 42 |
| Dependents | 61 | 0 | 0 |
| Releases | 26 | 5 | 2 |
| Last Updated | 89d ago | 631d ago | 1231d ago |
| Age | 4y 1m | 2y 8m | 5y 5m |
Health Breakdown
enum-assoc
Maintenance
14
Quality
17
Community
11
Popularity
7
Documentation
13
table_enum
Maintenance
4
Quality
15
Community
3
Popularity
5
Documentation
10
named_constants
Maintenance
3
Quality
16
Community
3
Popularity
4
Documentation
13
Technical Details
| enum-assoc | table_enum | named_constants | |
|---|---|---|---|
| Version | 1.3.0 | 0.3.0 | 0.2.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 3 | 1 | 0 |
| Crate Size | 9KB | 4KB | 7KB |
| Features | 0 | 0 | 0 |
| Yanked % | 7.7% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum-assoc leads with a health score of 62/100, but none of the options score above 80.
- •⚠ table_enum, named_constants have not been updated in over a year.
- •table_enum, named_constants are pre-1.0 — API may change.