Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Update Rust crate mockall to 0.15 - #42

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x
Open

Update Rust crate mockall to 0.15#42
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mockall-0.x

Conversation

@renovate

@renovaterenovateBot commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageTypeUpdateChange
mockalldev-dependenciesminor0.110.15

Release Notes

asomers/mockall (mockall)

v0.15.0

Compare Source

Added
  • Compatibility with the #[auto_impl] macro.
    (#​686)

v0.14.0

Compare Source

Added
  • Allow mocking structs and traits with const generics.
    (#​649)

  • Compatibility with the #[trait_variant::make] macro.
    (#​640)

  • Allow Expectations with a non-exact call count to be used in Sequences.
    (#​660)

Changed
  • The MSRV is now Rust 1.77.0.
    (#​650)
Fixed
  • No longer poison a static mock method's internal Mutex when panicing, even
    when using a stable Rust compiler. Also, no longer poison it even if there
    is no Context object. For example, if the user never set an Expectation at
    all.
    (#​650)

  • Suppress single-use-lifetimes lints in the generated code, for cases where
    the orginal code wouldn't have triggered the warning.
    (#​627)

  • Fix mocking foreign functions with a variadic argument and no pattern, for
    example fn foo(...) as opposed to fn bar(x: ...). That worked in prior
    versions of Mockall only until Rust 1.93.0, which made such arguments illegal
    for Rust functions.
    (#​673)

  • Fully qualify Send and Sync traits in generated code, allowing structs named
    Send or Sync to be in scope without conflicts.
    (#​672)

v0.13.1

Compare Source

Fixed
  • Suppress warnings about the #[expect] lint, new in Rust 1.81.0, in
    generated code.
    (#​619)

  • Suppress the #[clippy::ref_option] warning, new in Rust 1.83.0, in
    generated code.
    (#​618)

  • When mocking functions with a closure argument, but not using
    #[concretize], include any additional trait bounds in the trait object
    argument passed to .with and .returning.
    (#​606)

  • Fixed naming conflict when mocking multiple traits with same name but from
    different modules.
    (#​601)

v0.13.0

Compare Source

Added
  • Add the ability to use #[concretize] with methods that have an FnMut
    argument.
    (#​595)

  • Add the ability to mock methods that use #[auto_enum], from the
    auto_enums crate. But only for methods that use RPIT; Mockall can't yet
    handle syntax like -> Result<(), impl T>
    (#​590)

  • Add the ability to mock methods that use #[inline] or #[cold], and
    methods or traits that use #[must_use].
    (#​555)

Changed
  • Raised MSRV to 1.71.0 due to the C-unwind ABI.
    (#​585)

  • No longer poison a Context object's internal Mutex when panicing. This
    requires the "nightly" feature.
    (#​527)

Fixed
  • Fixed panicing within mocked extern "C" functions, for example due to
    unsatisfied expectations, with Rust 1.81.0 or newer.
    (#​585)

v0.12.1

Compare Source

Fixed
  • Fixed using #[mockall::concretize] on functions whose generic types contain
    trait bounds, yet are still object safe.
    (#​531)

  • Fixed mocking methods that use raw identifiers for their names. This was a
    regression in 0.12.0.
    (#​534)

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)

v0.11.4

Compare Source

Fixed
  • Static methods' expectations will now be cleared during a panic.
    (#​443)

  • The checkpoint method now works correctly even after a panic due to too many
    method calls.
    (#​472)

  • Methods with unknown size type bounds can now be mocked.
    (#​421)

v0.11.3

Compare Source

Fixed
  • Methods with a where Self: ... clause will now be mocked like concrete
    methods, not generic ones. Among other effects, this prevents "unused method
    expect" warnings from the latest nightly compiler.
    (#​415)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.12.1May 1, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch 2 times, most recently from 4e825a9 to 0b26305CompareMay 5, 2024 10:18
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12.1Update Rust crate mockall to 0.12May 5, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 0b26305 to ca15f9bCompareJuly 22, 2024 02:45
@renovaterenovateBot changed the title Update Rust crate mockall to 0.12Update Rust crate mockall to 0.13Jul 22, 2024
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from ca15f9b to 8553d68CompareAugust 10, 2025 13:35
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 8553d68 to a4c6271CompareSeptember 25, 2025 20:54
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from a4c6271 to 5d95b9dCompareNovember 22, 2025 20:29
@renovaterenovateBot changed the title Update Rust crate mockall to 0.13Update Rust crate mockall to 0.14Nov 22, 2025
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 5d95b9d to 6b5da67CompareDecember 10, 2025 10:51
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 6b5da67 to bb35b4cCompareDecember 31, 2025 16:59
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bb35b4c to b9e9dfeCompareFebruary 2, 2026 19:56
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from b9e9dfe to 3387ba7CompareFebruary 12, 2026 12:02
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 3387ba7 to cf083a0CompareFebruary 25, 2026 14:17
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from cf083a0 to d656cecCompareMarch 13, 2026 13:45
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from d656cec to 7afb76bCompareMay 18, 2026 09:54
@renovaterenovateBot changed the title Update Rust crate mockall to 0.14Update Rust crate mockall to 0.15Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from 7afb76b to bc1e7eeCompareJune 28, 2026 22:47
@renovate
renovateBotforce-pushed the renovate/mockall-0.x branch from bc1e7ee to eecace0CompareJuly 21, 2026 02:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants