Decision Workspace
googletest vs hamcrest2 vs googletest_macro
Side-by-side comparison of Rust crates
58
googletest
growingv0.14.3
A rich assertion and matcher library inspired by GoogleTest for C++
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.
59
googletest_macro
growingv0.14.3
Procedural macros for GoogleTest Rust
Core Metrics
| googletest | hamcrest2 | googletest_macro | |
|---|---|---|---|
| Health Score | 58 | 64 | 59 |
| Total Downloads | 8.3M | 891.2K | 8.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 562 | 483 | 21 |
| Releases | 21 | 11 | 20 |
| Last Updated | 128d ago | 11d ago | 128d ago |
| Age | 3y 10m | 8y 5m | 3y 10m |
Health Breakdown
googletest
Maintenance
12
Quality
9
Community
17
Popularity
8
Documentation
12
hamcrest2
Maintenance
15
Quality
16
Community
13
Popularity
7
Documentation
13
googletest_macro
Maintenance
12
Quality
15
Community
14
Popularity
8
Documentation
10
Technical Details
| googletest | hamcrest2 | googletest_macro | |
|---|---|---|---|
| Version | 0.14.3 | 1.0.1 | 0.14.3 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 |
| Dependencies | 8 | 2 | 3 |
| Crate Size | 134KB | 19KB | 15KB |
| Features | 0 | 0 | 0 |
| Yanked % | 9.5% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.85.0 | — | — |
| Owners | 6 | 1 | 6 |
Links
Quick Verdict
- •hamcrest2 leads with a health score of 64/100, but none of the options score above 80.
- •googletest has the most downloads (8.3M), suggesting wider adoption.
- •googletest is depended on by 562 crates — strongest ecosystem trust.
- •googletest, googletest_macro are pre-1.0 — API may change.