Decision Workspace
match_any vs try_match vs closed-trait-macros
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.
54
try_match
growingv0.4.2
Fallible pattern matching with a function-like syntax
46
closed-trait-macros
experimentalv0.2.0
Attribute macros for the closed-trait crate
Core Metrics
| match_any | try_match | closed-trait-macros | |
|---|---|---|---|
| Health Score | 51 | 54 | 46 |
| Total Downloads | 9.5K | 2.2M | 99 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 8 | 64 | 4 |
| Releases | 3 | 9 | 4 |
| Last Updated | 2100d ago | 806d ago | 29d ago |
| Age | 5y 11m | 6y 11m | 1m |
Health Breakdown
match_any
Maintenance
4
Quality
21
Community
9
Popularity
5
Documentation
12
try_match
Maintenance
5
Quality
18
Community
11
Popularity
8
Documentation
12
closed-trait-macros
Maintenance
11
Quality
14
Community
7
Popularity
2
Documentation
12
Technical Details
| match_any | try_match | closed-trait-macros | |
|---|---|---|---|
| Version | 1.0.1 | 0.4.2 | 0.2.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 | 3 |
| Crate Size | 7KB | 14KB | 54KB |
| Features | 0 | 5 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2024 |
| MSRV | — | 1.56 | 1.85.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •try_match leads with a health score of 54/100, but none of the options score above 80.
- •⚠ match_any, try_match have not been updated in over a year.
- •try_match, closed-trait-macros are pre-1.0 — API may change.