This repository was archived by the owner on May 12, 2026. It is now read-only.
chore(deps): update rust crate mockito to 0.32.0 - #56
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/mockito-0.x
branch
from
September 25, 2022 12:59
331e676 to
7d43666
Compare
renovate
Bot
force-pushed
the
renovate/mockito-0.x
branch
from
November 20, 2022 09:32
7d43666 to
a3ab168
Compare
renovate
Bot
force-pushed
the
renovate/mockito-0.x
branch
from
March 18, 2023 06:03
a3ab168 to
bb6d140
Compare
renovate
Bot
force-pushed
the
renovate/mockito-0.x
branch
from
May 5, 2024 10:52
bb6d140 to
05e1650
Compare
renovate
Bot
force-pushed
the
renovate/mockito-0.x
branch
from
September 11, 2024 07:29
05e1650 to
592f9f0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.30.0→0.32.0Release Notes
lipanski/mockito (mockito)
v0.32.5Compare Source
Arc(more reliable in this case)v0.32.4Compare Source
Mock::with_body_from_requestwhich allows setting the response body dynamically, based on theRequestobjectMutexwith anRwLockv0.32.3Compare Source
Server::newandServer::new_asyncnow return aServerGuardobject which dereferences toServer- this is only relevant if you need to assign a type to your serverv0.32.2Compare Source
_asyncmethodsv0.32.1Compare Source
v0.32.0Compare Source
This is a major re-write, introducing a bunch of long awaited features:
[Breaking] The minimum supported Rust version was bumped to 1.65.0
Tests can now run in parallel as long as you use the new
mockito::ServerAPI:You can run multiple servers/hosts at the same time:
Support for HTTP2
An async interface for all actions (though the sync interface is also available):
The backend has been rewritten to use Hyper
This version will be backwards compatible with the previous version, but deprecation warnings have been introduced and you are encouraged to migrate, since the old API still requires running tests sequentially. Migrating to the new API is quite straighforward:
Migrating to the new API
Legacy API:
New API:
Migrating to the async API
In order to write async tests, you'll need to use the
_asyncmethods:Server::new_asyncMock::create_asyncMock::assert_asyncMock::matched_asyncServer::reset_async...otherwise your tests will not compile and you'll see this error:
Cannot start a runtime from within a runtime.When using tokio, prefer the single-threaded runtime over the multi-threaded one.
Example:
v0.31.1Compare Source
Thanks to @chantra
v0.31.0Compare Source
Thanks to @ameliabradley
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.