NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #1804 most downloaded on crates.io
HTTP mocking library for Rust
Last release 8 months ago
04 Feb 2026
Release timing varies
gaps range from 1 weeks to 13 months
Most releases are documented
notes for 24 of 37 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
43 releases · first in 2019
Minimum supported Rust version has been raised to 1.88.
Minimum supported Rust version has been raised to 1.88.
The following PRs have been merged:
All changes between since the last release:
v0.8.2...v0.8.3
One column per quarter.
This release includes bug fixes, documentation enhancements and new features, such as dynamic responders .
This release includes bug fixes, documentation enhancements and new features, such as dynamic responders.
The following pull requests have been merged:
This release includes bug fixes and documentation enhancements.
This release includes bug fixes and documentation enhancements.
The following pull requests have been merged:
This release includes refactoring, dependency updates, and internal cleanups. No breaking changes expected.
This release includes refactoring, dependency updates, and internal cleanups.
No breaking changes expected.
The minimum required Rust version has been increased to 1.82.
The following pull requests have been merged:
This release includes refactoring, dependency updates, and internal cleanups.
The minimum required Rust version has been increased to 1.82.
The following pull requests have been merged:
A new MockServer::reset method was added that resets a mock server. Thanks for providing the pull request for this feature, @dax .
5000 to 5050 due to conflicts with system services on macOS.json_body_includes.form_urlencoded_tuple.form_urlencoded_key_exists.Mock::assert).When::matches has been renamed to When::is_true.5000 to 5050 due to conflicts with system services on macOS.json_body_includes.form_urlencoded_tuple.form_urlencoded_key_exists.Mock::assert).When::matches has been renamed to When::is_true.For connecting to remote httpmock servers during tests using any of the connect methods like MockServer::connect , MockServer::connect_async , MockSer
BREAKING CHANGES:
httpmock servers during tests using any of the connect methods likeremote feature. This feature is not enabled by default.Improvements:
remote feature is not enabled.remote feature is not enabled, httpmock no longer has a dependency on a real HTTP client.This release also updates all dependencies to the most recent version.
The minimum Rust version has been bumped to 1.70.
For connecting to remote httpmock servers during tests using any of the connect methods like MockServer::connect , MockServer::connect_async , MockSer
BREAKING CHANGES:
httpmock servers during tests using any of the connect methods likeremote feature. This feature is not enabled by default.Improvements:
remote feature is not enabled.remote feature is not enabled, httpmock no longer has a dependency on a real HTTP client.This release also updates all dependencies to the most recent version.
The minimum Rust version has been bumped to 1.65 (and 1.70 for the remote and standalone features).
This is a maintenance release that updates all dependencies to the most recent version.
This is a maintenance release that updates all dependencies to the most recent version.
Extended some API methods to allow for more type flexibility (see #58 ). Thanks to @95th for providing the PR!
+ to represent space (see #56). Thanks to @95th for providing the PR!cookie to shorten compile time (see #63). Thanks to mythmon for providing this PR!Fixes a race condition that could occur when deleting mocks from the mock server (see ).
difference to similar, see https://github.com/httpmock/httpmock/pull/55).Fixed minimum Rust version in README (raised from 1.47 to 1.54, see release 0.6.3 for more information).
This is a maintenance release that updates all dependencies to the most recent version.
A bug was fixed that has unexported the When and Then structures. Both types are now exported again. Please refer to for more info.
This is a maintenance release that updates all dependencies to the most recent version.
Old Mock structure based API was deprecated starting from version 0.5.0 and was removed with this version. Please switch to the new API based on the W…
MockRef::times_called and MockRef::times_called_async were deprecated since version 0.5.0 and
have now been removed.httpmock in tests.MockRef has been renamed to Mock.MockRefExt has been renamed to MockExt.exposed and disable_access_log parameters were changed, so that they now require a value
in addition to the flag itself (this is due to a limitation of structopt/clap):
Before: httpmock --expose, Now: httpmock --expose true.A bug has been fixed that prevented to use the mock server for requests containing a multipart/form-data request body with binary data.
multipart/form-data
request body with binary data.Added static mock support based on YAML files for standalone mode.
A bug has been fixed that caused false positive warnings in the log output.
MockRef::assert and MockRef::assert_hits) now contain more details.Nothing published for this version
Nothing published for this version
A bug has been fixed that prevented to use a request body in DELETE requests.
A new extension trait MockRefExt was added that extends the MockRef structure with additional but usually not required functionality.
MockRefExt was added that extends the MockRef structure with additional but usually
not required functionality.Nothing published for this version
This is a maintenance release that updates all dependencies to the most recent version.
Updated dependencies to newest version.
Mock::return_body_from_file and Then::body_from_file now accept absolute and relative file paths.Updated dependency to futures-util to fix compile errors.
❌ _Breaking Change_: Function Mock::expect_json_body was renamed to expect_json_body_obj.
Mock::expect_json_body was renamed to expect_json_body_obj.Mock::return_json_body was renamed to return_json_body_obj.MockRef::assertMockRef::assert_hitsMockRef::assert_asyncMockRef::assert_hits_asyncMockRef::times_called and MockRef::times_called_async are now deprecated. Consider using
MockRef::hits and MockRef::hits_async.Mock::return_body and Then::body now accept binary content.serde_json::Value:
Mock::expect_json_bodyMock::return_json_bodyWhen::json_bodyThen::json_bodydebug to trace to make debugging easier.Nothing published for this version
Added a new function base_url to the MockServer structure.
base_url to the MockServer structure.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
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →