Decision Workspace
try_match vs match-commutative vs match_any
Side-by-side comparison of Rust crates
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. ↔️
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
| try_match | match-commutative | match_any | |
|---|---|---|---|
| Health Score | 53 | 43 | 51 |
| Total Downloads | 1.5M | 3.9K | 8.0K |
| 30d Downloads | 105.1K | 5 | 111 |
| Dependents | 63 | 0 | 8 |
| Releases | 9 | 3 | 3 |
| Last Updated | 610d ago | 923d ago | 1903d ago |
| Age | 6y 5m | 2y 9m | 5y 4m |
Health Breakdown
try_match
Maintenance
5
Quality
18
Community
11
Popularity
7
Documentation
12
match-commutative
Maintenance
5
Quality
16
Community
6
Popularity
4
Documentation
12
match_any
Maintenance
4
Quality
21
Community
9
Popularity
5
Documentation
12
Technical Details
| try_match | match-commutative | match_any | |
|---|---|---|---|
| Version | 0.4.2 | 0.1.0 | 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 | 2 | 0 | 0 |
| Crate Size | 14KB | 9KB | 7KB |
| Features | 5 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 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.
- •⚠ try_match, match-commutative, match_any have not been updated in over a year.
- •try_match, match-commutative are pre-1.0 — API may change.