Decision Workspace
enum-assoc vs table_enum vs named_constants
Side-by-side comparison of Rust crates
59
enum-assoc
growingv1.3.0
Procedural macro to associate constants with enum variants.
41
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)
40
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 | 59 | 41 | 40 |
| Total Downloads | 2.3M | 8.7K | 5.9K |
| 30d Downloads | 198.1K | 0 | 0 |
| Dependents | 78 | 37 | 0 |
| Releases | 26 | 5 | 2 |
| Last Updated | 197d ago | 739d ago | 1339d ago |
| Age | 4y 4m | 2y 11m | 5y 9m |
Health Breakdown
enum-assoc
Maintenance
10
Quality
17
Community
11
Popularity
8
Documentation
13
table_enum
Maintenance
4
Quality
15
Community
7
Popularity
5
Documentation
10
named_constants
Maintenance
3
Quality
16
Community
3
Popularity
5
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 59/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.