Decision Workspace
match-by-hash vs matched_enums vs trait-gen
Side-by-side comparison of Rust crates
42
match-by-hash
growingv1.0.1
Match statement, but for any value and with a hash function
49
matched_enums
growingv1.3.0
A macro that provides the option to bin enum attribute to match-statements. This makes it easier to convert values into enums.
67
trait-gen
stablev2.0.10
Trait implementation generator macro
Core Metrics
| match-by-hash | matched_enums | trait-gen | |
|---|---|---|---|
| Health Score | 42 | 49 | 67 |
| Total Downloads | 3.9K | 1.9K | 184.2K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 14 |
| Releases | 3 | 4 | 30 |
| Last Updated | 1029d ago | 427d ago | 16d ago |
| Age | 2y 9m | 1y 5m | 3y 7m |
Health Breakdown
match-by-hash
Maintenance
5
Quality
20
Community
3
Popularity
4
Documentation
10
matched_enums
Maintenance
8
Quality
20
Community
5
Popularity
4
Documentation
12
trait-gen
Maintenance
18
Quality
20
Community
8
Popularity
6
Documentation
15
Technical Details
| match-by-hash | matched_enums | trait-gen | |
|---|---|---|---|
| Version | 1.0.1 | 1.3.0 | 2.0.10 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 3 | 3 | 5 |
| Crate Size | 3KB | 13KB | 31KB |
| Features | 0 | 1 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | 1.88 | 1.61.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •trait-gen leads with a health score of 67/100, but none of the options score above 80.
- •⚠ match-by-hash, matched_enums have not been updated in over a year.