Decision Workspace
enumtrait vs enum_dispatch vs enum_delegate
Side-by-side comparison of Rust crates
36
enumtrait
growingv1.0.0
A library of macros for polymorphism using enums
51
enum_dispatch
growingv0.3.13
Near drop-in replacement for dynamic-dispatched method calls with up to 10x the speed
46
enum_delegate
growingv0.2.0
Easily replace dynamic dispatch with an enum, for speed and serialization
Core Metrics
| enumtrait | enum_dispatch | enum_delegate | |
|---|---|---|---|
| Health Score | 36 | 51 | 46 |
| Total Downloads | 863 | 46.7M | 796.8K |
| 30d Downloads | 17 | 4.1M | 329.4K |
| Dependents | 0 | 4.6K | 182 |
| Releases | 1 | 26 | 2 |
| Last Updated | 376d ago | 729d ago | 1238d ago |
| Age | 1y | 7y 3m | 3y 4m |
Health Breakdown
enumtrait
Maintenance
2
Quality
18
Community
4
Popularity
4
Documentation
8
enum_dispatch
Maintenance
6
Quality
13
Community
15
Popularity
8
Documentation
9
enum_delegate
Maintenance
4
Quality
14
Community
11
Popularity
7
Documentation
10
Technical Details
| enumtrait | enum_dispatch | enum_delegate | |
|---|---|---|---|
| Version | 1.0.0 | 0.3.13 | 0.2.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | non-standard | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 7 | 10 | 6 |
| Crate Size | 18KB | 30KB | 12KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum_dispatch leads with a health score of 51/100, but none of the options score above 80.
- •enum_dispatch is depended on by 4.6K crates — strongest ecosystem trust.
- •⚠ enumtrait, enum_dispatch, enum_delegate have not been updated in over a year.
- •enum_dispatch, enum_delegate are pre-1.0 — API may change.