Decision Workspace
table_enum vs enum-assoc vs named_constants
Side-by-side comparison of Rust crates
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)
62
enum-assoc
stablev1.3.0
Procedural macro to associate constants with enum variants.
39
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 | 37 | 62 | 39 |
| Total Downloads | 8.1K | 1.4M | 5.5K |
| 30d Downloads | 67 | 173.2K | 42 |
| Dependents | 0 | 61 | 0 |
| Releases | 5 | 26 | 2 |
| Last Updated | 631d ago | 89d ago | 1231d ago |
| Age | 2y 8m | 4y 1m | 5y 5m |
Health Breakdown
table_enum
Maintenance
4
Quality
15
Community
3
Popularity
5
Documentation
10
enum-assoc
Maintenance
14
Quality
17
Community
11
Popularity
7
Documentation
13
named_constants
Maintenance
3
Quality
16
Community
3
Popularity
4
Documentation
13
Technical Details
| table_enum | enum-assoc | named_constants | |
|---|---|---|---|
| Version | 0.3.0 | 1.3.0 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 3 | 0 |
| Crate Size | 4KB | 9KB | 7KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 7.7% | 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.