Email me

Best of / Rust crates / testing

Best of · ranked by real use · data Oct 24, 2026

Best Rust crates for testing

Short answerBy real use, the top Rust crates for testing are criterion (753K a day), proptest (663K a day), pretty_assertions (522K a day). criterion is our default pick: 753,315 real downloads a day and 19,337 dependents. Gaining fastest against the field: wiremock (+27%). 3 of these 9 shipped in the last 90 days; pretty_assertions has not released in 2+ years.

Our picks

  • Default pick: criterion. The most used that still ships releases, so the most answered questions and the likeliest to already be in your tree.
  • Rising: wiremock. +27% on quiet days against the field over 90 days.
  • Most recently released: rstest (6 days ago).

The ranking

#CrateReal downloads a dayDependentsTrend vs fieldLast releaseWhat it is (its own description)
1criterion Foundational753,31519,337+7%9moStatistics-driven micro-benchmarking library
2proptest Foundational663,35512,243+13%14dHypothesis-like property-based testing and shrinking
3pretty_assertions Widely used quiet 2+ years522,2945,760-12%2.1yOverwrite `assert_eq!` and `assert_ne!` with drop-in replacements, adding colorful diffs
4serial_test Widely used429,3252,974-11%3moAllows for the creation of serialised Rust tests
5mockall Widely used406,6671,393-15%4moA powerful mock object library for Rust
6rstest Widely used381,3473,531+2%6dRust fixture based test framework. It use procedural macro to implement fixtures and table based tests
7insta Widely used379,7984,970+2%21dA snapshot testing library for Rust
8wiremock Widely used309,8643,363+27%14moHTTP mocking to test Rust applications
9assert_cmd Widely used228,2605,434-9%5moTest CLI Applications

Rules

Candidates: crates whose own README says they do this job, picked by hand (proptest, quickcheck, rstest, mockall, insta, criterion, pretty_assertions, assert_cmd, serial_test, test-case, wiremock, mockito); one appears when we have 80+ days of crates.io data for it. Ranked by real downloads a day (quiet-day median, release-day spikes removed), crates.io data Oct 24, 2026. The default pick is the top crate that shipped a release in the last 2 years. Downloads measure use, not quality, and crates that other libraries pull in rank above tools you add yourself: read each description for fit.

Up next

Another best-of list: Same rules, same data.Best Rust crates for concurrency and parallelismRead it next →

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Did this answer your question?

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ