Decision Workspace
table_enum vs enum-assoc vs named_constants
Side-by-side comparison of Rust crates
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)
66
enum-assoc
stablev1.4.1
Procedural macro to associate constants with enum variants.
40
named_constants
growingv0.2.0
Procedural macro makes enums behave like named constants in languages like C/C++ or C#.
Core Metrics
| table_enum | enum-assoc | named_constants | |
|---|---|---|---|
| Health Score | 41 | 66 | 40 |
| Total Downloads | 9.0K | 4.4M | 6.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 37 | 106 | 0 |
| Releases | 5 | 28 | 2 |
| Last Updated | 828d ago | 51d ago | 1427d ago |
| Age | 3y 2m | 4y 7m | 5y 12m |
Health Breakdown
table_enum
Maintenance
4
Quality
15
Community
7
Popularity
5
Documentation
10
enum-assoc
Maintenance
16
Quality
17
Community
12
Popularity
8
Documentation
13
named_constants
Maintenance
3
Quality
16
Community
3
Popularity
5
Documentation
13
Technical Details
| table_enum | enum-assoc | named_constants | |
|---|---|---|---|
| Version | 0.3.0 | 1.4.1 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 3 | 0 |
| Crate Size | 4KB | 10KB | 7KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 7.1% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum-assoc leads with a health score of 66/100, but none of the options score above 80.
- •enum-assoc is depended on by 106 crates — strongest ecosystem trust.
- •⚠ table_enum, named_constants have not been updated in over a year.
- •table_enum, named_constants are pre-1.0 — API may change.