NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #1295 most downloaded on crates.io
HTTP mocking for Rust.
Latest stable
1.7.2
Last release 9 months ago
02 Feb 2026
Release timing varies
gaps range from 9 days to 9 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
11 years old
77 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Introduced the Mock#assert method to assert that a mock was called. You can use Mock#expect to specify the number of requests you're expecting. Check
Mock#assert method to assert that a mock was called. You can use Mock#expect to specify the number of requests you're expecting. Check the docs for more details.Mock#remove or reset explicitly. You'll want to assign your mock to a variable in order to establish its lifetime. Check the docs for examples.Mock#remove method has been removed (or better said, it's private now). You can use std::mem::drop if you really need to remove a mock before its lifetime ends.Mock#create_for method has been removed. Normal Rust closures { ... } and the lifetimes should replace this just fine.Mock struct are now returning Mock instead of &mut Mock.Introduce a new matcher: Match::Regex(String), for matching the request path or headers with a regular expression.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Match::Regex(String), for matching the request path or headers with a regular expression.Thanks to @estin
Replaced hyper with curl + http-muncher: resulted in a significant speed improvement and support for Windows.
Fix a bug where response headers were unordered & duplicate header field names were not allowed.
Thanks to @alyssais
Run the mock server on 127.0.0.1 (instead of 0.0.0.0).
127.0.0.1 (instead of 0.0.0.0).Thanks to @alyssais
Rewrite internal server to talk JSON (via serde).
mockito::start() method so Mockito can be used as a standalone mock server (API documentation on that is missing though).Introduced advanced header matchers: Matcher::Any to match only by the field name and Matcher::Missing to match the absence of a particular header. Th
Matcher::Any to match only by the field name and Matcher::Missing to match the absence of a particular header. These are used within the Mock::match_header call.&str was kept backwards compatible.Explicitly set an empty body for non-matching routes (prevents hanging requests for non-matching routes).
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.