mockito
HTTP mocking for Rust.
1.7.2
53M downloads/mo
#1180 most downloaded on crates.io
lipanski/mockito
What this package is like to depend on
Last release 6 months ago
02 Feb 2026
Release timing varies
gaps range from 9 days to 9 months
Rarely documented
notes for 10 of 75 stable releases
2 versions withdrawn
withdrawn after publishing
11 years old
77 releases · first in 2016
2 releases in the last 12 months
see the full history below
Release timeline
77 releases · Jan 2016 to Feb 2026Releases
latest 60 of 77-
1.7.202 Feb 2026 -
1.7.130 Nov 2025Release notes
Open source →- Add headers method to Request struct by @gustavomedeiross in #220
- Optimize body matching by checking binary match before UTF-8 conversion by @Abimael10 in #221
- Refactor response body by @tottoto in #222
-
1.7.004 Mar 2025Release notes
Open source →- Make
parking_lotoptional - Update
randcrate to v0.9 - Allow
coloredcrate v3
- Make
-
1.6.113 Nov 2024Release notes
Open source →- Added
Mock::with_header_from_requestallowing you to set the header dynamically by using a closure which exposes theRequestobject
Thanks to @alex-kattathra-johnson
- Added
-
1.6.012 Nov 2024Release notes
Open source →- Introduced
Mock::match_requestwhich exposes theRequestobject via a closure and can be used to build custom matchers
- Introduced
-
1.5.031 Jul 2024 -
1.4.028 Feb 2024Release notes
Open source →- [Breaking] Bump minimum supported Rust version to 1.70 and revert version constraints on the
coloredcrate
- [Breaking] Bump minimum supported Rust version to 1.70 and revert version constraints on the
-
1.3.126 Feb 2024Release notes
Open source →- Fixed a bug where
Semaphore::const_newwasn't available on Tokio < 1.30 because of the missing Tokioparking_lotfeature flag - Use the Tokio runtime everywhere to remove the need for the
futurescrate (aside fromfutures-core)
Thanks to @tottoto
- Fixed a bug where
-
1.3.021 Feb 2024Release notes
Open source →- Introduced
Server::new_with_opts,Server::new_with_opts_asyncand theServerOptsstruct to allow configuring the server host, port and enabling auto-asserts (see next item) - Added the
assert_on_dropserver option that allows you to automatically callassert()whenever your mocks go out of scope (defaults to false) - Expose
Server::socket_address()to return the raw serverSocketAddr - Use only required features for dependencies
- Accept
hyper::header::HeaderValueas amatch_header()value
Thanks to @andrewtoth @alexander-jackson
- Introduced
-
1.2.015 Sep 2023Release notes
Open source →- [Breaking] The minimum supported Rust version was bumped to 1.68.0
- The server pool was limited to 20 servers for
mac_ostargets to prevent hitting the file descriptor limit
Thanks to @kornelski
-
1.1.114 Sep 2023Nothing published for this version
-
1.1.017 Jun 2023Nothing published for this version
-
1.0.231 Mar 2023Nothing published for this version
-
1.0.125 Mar 2023Nothing published for this version
-
1.0.012 Mar 2023Nothing published for this version
-
0.32.511 Mar 2023Nothing published for this version
-
0.32.402 Mar 2023Nothing published for this version
-
0.32.316 Feb 2023Nothing published for this version
-
0.32.214 Feb 2023 withdrawnNothing published for this version
-
0.32.113 Feb 2023 withdrawnNothing published for this version
-
0.32.010 Feb 2023Nothing published for this version
-
0.31.105 Dec 2022Nothing published for this version
-
0.31.026 Feb 2022Nothing published for this version
-
0.30.018 Mar 2021Nothing published for this version
-
0.29.024 Jan 2021Nothing published for this version
-
0.28.004 Nov 2020Nothing published for this version
-
0.27.025 Jul 2020Nothing published for this version
-
0.26.028 Jun 2020Nothing published for this version
-
0.25.328 Jun 2020Nothing published for this version
-
0.25.230 May 2020Nothing published for this version
-
0.25.108 Apr 2020Nothing published for this version
-
0.25.005 Apr 2020Nothing published for this version
-
0.23.321 Feb 2020Nothing published for this version
-
0.23.219 Feb 2020Nothing published for this version
-
0.23.105 Feb 2020Nothing published for this version
-
0.23.030 Jan 2020Nothing published for this version
-
0.22.011 Nov 2019Nothing published for this version
-
0.21.025 Sep 2019Nothing published for this version
-
0.20.029 Jul 2019Nothing published for this version
-
0.19.020 Jul 2019Nothing published for this version
-
0.18.011 Jul 2019Nothing published for this version
-
0.17.128 Apr 2019Nothing published for this version
-
0.17.025 Mar 2019Nothing published for this version
-
0.16.018 Feb 2019Nothing published for this version
-
0.15.104 Feb 2019Nothing published for this version
-
0.15.001 Jan 2019Nothing published for this version
-
0.14.121 Dec 2018Nothing published for this version
-
0.14.018 Nov 2018Nothing published for this version
-
0.13.017 Sep 2018Nothing published for this version
-
0.12.027 Jun 2018Nothing published for this version
-
0.11.124 Jun 2018Nothing published for this version
-
0.11.010 Jun 2018Nothing published for this version
-
0.10.005 May 2018Nothing published for this version
-
0.9.110 Mar 2018Nothing published for this version
-
0.9.029 Aug 2017Nothing published for this version
-
0.8.226 Jul 2017Nothing published for this version
-
0.8.116 Jul 2017Nothing published for this version
-
0.8.011 Jul 2017Nothing published for this version
-
0.7.209 Jul 2017Nothing published for this version
-
0.7.106 Jul 2017Nothing published for this version