Crates / mockall / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to mockall
Short answerThe closest alternatives to mockall on crates.io data are wiremock (310K real downloads a day), static_assertions (1.4M real downloads a day), proptest (663K real downloads a day). Of the 8 we list, the most used is static_assertions, and 5 shipped a release in the last year. mockall itself gets 406,667 a day with 1,393 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs mockall | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| wiremock Widely used | 309,864 | 0.76x | 3,363 | 14mo | keyword "mock", keyword "mocking" | side by side |
| static_assertions Widely used | 1,442,265 | 3.55x | 1,688 | 7.0y | category Testing, keyword "testing" | compare |
| proptest Foundational | 663,355 | 1.63x | 12,243 | 14d | category Testing, keyword "testing" | compare |
| arbitrary Widely used | 574,083 | 1.41x | 1,030 | 18d | category Testing, keyword "testing" | compare |
| rusty-fork Pulled in | 504,858 | 1.24x | 87 | 13mo | category Testing, keyword "testing" | compare |
| serial_test Widely used | 429,325 | 1.06x | 2,974 | 3mo | category Testing, keyword "testing" | compare |
| insta Widely used | 379,798 | 0.93x | 4,970 | 21d | category Testing, keyword "testing" | compare |
| derive_arbitrary Pulled in | 369,897 | 0.91x | 9 | 18d | category Testing, keyword "testing" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with mockall; read its description before you swap.
- More dependents means more answered questions and a smaller chance it disappears.
- Check the last release against how fast you need fixes. For mockall: is it still maintained?
Rules
Alternatives = tracked crates (top 1000 by downloads) that share a specific crates.io category (2 points each) or keyword (3 points each) with mockall, most similar first; its own parts (same name prefix) and crates it depends on or that depend on it are left out, because those are companions, not substitutes. Real downloads = quiet-day median, crates.io data Oct 24, 2026. Built when we find 3 or more.
Up next
The closest alternative: Widely used and gaining. 309,864 real downloads a day.wiremockRust crate. HTTP mocking to test Rust applications. Real use: 310K downloads a day on quiet days; 3,363 crates depend on it.Read it next →Also worth your time