Decision Workspace
match-commutative vs try_match vs match_any
Side-by-side comparison of Rust crates
43
match-commutative
growingv0.1.0
Match on patterns commutatively, reducing the use of duplicated patterns. ↔️
53
try_match
growingv0.4.2
Fallible pattern matching with a function-like syntax
51
match_any
growingv1.0.1
Provides a declarative macro, that matches an expression to any of the patterns and executes the same expression arm for any match.
Core Metrics
| match-commutative | try_match | match_any | |
|---|---|---|---|
| Health Score | 43 | 53 | 51 |
| Total Downloads | 3.9K | 1.5M | 8.0K |
| 30d Downloads | 5 | 105.1K | 111 |
| Dependents | 0 | 63 | 8 |
| Releases | 3 | 9 | 3 |
| Last Updated | 923d ago | 610d ago | 1903d ago |
| Age | 2y 9m | 6y 5m | 5y 4m |
Health Breakdown
match-commutative
Maintenance
5
Quality
16
Community
6
Popularity
4
Documentation
12
try_match
Maintenance
5
Quality
18
Community
11
Popularity
7
Documentation
12
match_any
Maintenance
4
Quality
21
Community
9
Popularity
5
Documentation
12
Technical Details
| match-commutative | try_match | match_any | |
|---|---|---|---|
| Version | 0.1.0 | 0.4.2 | 1.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 2 | 0 |
| Crate Size | 9KB | 14KB | 7KB |
| Features | 0 | 5 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2018 |
| MSRV | — | 1.56 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •try_match leads with a health score of 53/100, but none of the options score above 80.
- •⚠ match-commutative, try_match, match_any have not been updated in over a year.
- •match-commutative, try_match are pre-1.0 — API may change.