Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate mockall to 0.12 #4663

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Update Rust crate mockall to 0.12 #4663

merged 1 commit into from
Dec 12, 2023

Conversation

oxide-renovate[bot]
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
mockall workspace.dependencies minor 0.11 -> 0.12

Release Notes

asomers/mockall (mockall)

v0.12.0

Compare Source

Added
  • Added #[mockall::concretize], which can be used to mock some generic
    methods that have non-'static generic parameters. It works by turning the
    generic arguments into trait objects for the expectation.
    (#​408)

  • When mocking functions with a non-default ABI (Like extern "C"), the mock
    function will now use the same ABI as the original. Name mangling will also
    be disabled, so the mock function will be callable from external code. For
    example, from C functions.
    (#​504)

Changed
  • Raised predicates, which is reexported, to 3.0.0. This may affect backwards
    compatibility for users who make use of predicates's "color" feature.
    (#​467)

  • Raised MSRV to 1.64.0 because predicates-core and predicates-tree did.
    (#​430)
    (#​467)

  • Better "No matching expectation found" messages on stable.
    (#​425)

Fixed
  • Fixed mocking non-private inherent methods that have attributes with syn
    version 2.0.9 and later.
    (#​486)

  • Suppress clippy::too_many_arguments warnings in the generated code. This
    is most useful when mocking static functions with exactly 7 arguments.
    (#​487)

  • Fixed unused_attributes warnings in the generated code when mocking FFI
    functions that use #[link_name].
    (#​503)

  • Fix a panic during Drop for static methods. One way to trigger it is by
    calling the method more times than is allowed by a .times() constraint.
    Another way would be to explicitly panic during the .returning method.
    (#​516)

Removed
  • Removed syntax deprecated since 0.9.0: using #[automock] directly on an
    extern "C" block, and using trait Foo {} syntax inside of mock!.
    (#​476)

  • Removed default features from predicates dependency. Reexports no longer
    include difflib, normalize-line-endings, regex and float-cmp features.
    (#​517)


Configuration

📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@oxide-renovate oxide-renovate bot added the dependencies Pull requests that update a dependency file label Dec 10, 2023
@oxide-renovate oxide-renovate bot force-pushed the renovate/mockall-0.x branch from 2418bd8 to 8d3d1b7 Compare December 12, 2023 04:08
@sunshowers sunshowers merged commit 76a35f2 into main Dec 12, 2023
22 checks passed
@sunshowers sunshowers deleted the renovate/mockall-0.x branch December 12, 2023 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant