Decision Workspace
hamcrest2 vs hamcrest vs googletest_macro
Side-by-side comparison of Rust crates
64
hamcrest2
stablev1.0.1
A port of the Hamcrest testing library. Fork of original hamcrest-rust (which is unmaintained) with extra matchers, better docs, Rust 2024 support etc.
51
hamcrest
growingv0.1.5
A port of the Hamcrest testing library
59
googletest_macro
growingv0.14.3
Procedural macros for GoogleTest Rust
Core Metrics
| hamcrest2 | hamcrest | googletest_macro | |
|---|---|---|---|
| Health Score | 64 | 51 | 59 |
| Total Downloads | 891.2K | 406.5K | 8.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 483 | 223 | 21 |
| Releases | 11 | 6 | 20 |
| Last Updated | 11d ago | 3252d ago | 128d ago |
| Age | 8y 5m | 11y 2m | 3y 10m |
Health Breakdown
hamcrest2
Maintenance
15
Quality
16
Community
13
Popularity
7
Documentation
13
hamcrest
Maintenance
4
Quality
15
Community
14
Popularity
7
Documentation
11
googletest_macro
Maintenance
12
Quality
15
Community
14
Popularity
8
Documentation
10
Technical Details
| hamcrest2 | hamcrest | googletest_macro | |
|---|---|---|---|
| Version | 1.0.1 | 0.1.5 | 0.14.3 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT/Apache-2.0 | Apache-2.0 |
| Dependencies | 2 | 2 | 3 |
| Crate Size | 19KB | 13KB | 15KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | — | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 2 | 6 |
Links
Quick Verdict
- •hamcrest2 leads with a health score of 64/100, but none of the options score above 80.
- •googletest_macro has the most downloads (8.2M), suggesting wider adoption.
- •hamcrest2 is depended on by 483 crates — strongest ecosystem trust.
- •⚠ hamcrest has not been updated in over a year.
- •hamcrest, googletest_macro are pre-1.0 — API may change.