Decision Workspace
match_any vs try_match vs match-commutative
Side-by-side comparison of Rust crates
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.
53
try_match
growingv0.4.2
Fallible pattern matching with a function-like syntax
43
match-commutative
growingv0.1.0
Match on patterns commutatively, reducing the use of duplicated patterns. ↔️
Core Metrics
| match_any | try_match | match-commutative | |
|---|---|---|---|
| Health Score | 51 | 53 | 43 |
| Total Downloads | 8.0K | 1.5M | 3.9K |
| 30d Downloads | 105 | 102.8K | 5 |
| Dependents | 8 | 63 | 0 |
| Releases | 3 | 9 | 3 |
| Last Updated | 1903d ago | 610d ago | 923d ago |
| Age | 5y 4m | 6y 5m | 2y 9m |
Health Breakdown
match_any
Maintenance
4
Quality
21
Community
9
Popularity
5
Documentation
12
try_match
Maintenance
5
Quality
18
Community
11
Popularity
7
Documentation
12
match-commutative
Maintenance
5
Quality
16
Community
6
Popularity
4
Documentation
12
Technical Details
| match_any | try_match | match-commutative | |
|---|---|---|---|
| Version | 1.0.1 | 0.4.2 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 2 | 0 |
| Crate Size | 7KB | 14KB | 9KB |
| 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_any, try_match, match-commutative have not been updated in over a year.
- •try_match, match-commutative are pre-1.0 — API may change.