Decision Workspace
assert_matches vs assert_let_bind vs try_match
Side-by-side comparison of Rust crates
58
assert_matches
growingv1.5.0
Asserts that a value matches a pattern
45
assert_let_bind
growingv0.1.1
A convenience macro for writing pattern-matching tests
53
try_match
growingv0.4.2
Fallible pattern matching with a function-like syntax
Core Metrics
| assert_matches | assert_let_bind | try_match | |
|---|---|---|---|
| Health Score | 58 | 45 | 53 |
| Total Downloads | 53.9M | 275.8K | 1.5M |
| 30d Downloads | 4.0M | 6.4K | 105.1K |
| Dependents | 23.7K | 10 | 63 |
| Releases | 7 | 2 | 9 |
| Last Updated | 1877d ago | 1320d ago | 610d ago |
| Age | 10y 1m | 3y 7m | 6y 5m |
Health Breakdown
assert_matches
Maintenance
4
Quality
21
Community
14
Popularity
8
Documentation
11
assert_let_bind
Maintenance
4
Quality
16
Community
9
Popularity
6
Documentation
10
try_match
Maintenance
5
Quality
18
Community
11
Popularity
7
Documentation
12
Technical Details
| assert_matches | assert_let_bind | try_match | |
|---|---|---|---|
| Version | 1.5.0 | 0.1.1 | 0.4.2 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT/Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 2 |
| Crate Size | 8KB | 3KB | 14KB |
| Features | 0 | 0 | 5 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | — | 2021 | 2021 |
| MSRV | — | — | 1.56 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •assert_matches leads with a health score of 58/100, but none of the options score above 80.
- •assert_matches is depended on by 23.7K crates — strongest ecosystem trust.
- •⚠ assert_matches, assert_let_bind, try_match have not been updated in over a year.
- •assert_let_bind, try_match are pre-1.0 — API may change.