cargo / mockall
mockall
What changed in mockall 0.14 to 0.15, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking1 new APIs and options3 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmockall 0.151 changes
Behavior and default changes 1
mockall is now compatible with the #[auto_impl] macro.
mockall 0.148 changes
Breaking changes 1
The MSRV is now Rust 1.77.0.
New APIs and options 1
Structs and traits with const generics can now be mocked.
Behavior and default changes 2
Expectations with a non-exact call count can now be used in Sequences.
Mockall is now compatible with the #[trait_variant::make] macro.
Fixes and other changes 4
Generated code fully qualifies Send and Sync, avoiding conflicts when structs named Send or Sync are in scope.
Generated code suppresses single-use-lifetimes lints when the original code would not have triggered the warning.
A panic no longer poisons a static mock method's internal Mutex, including when no Context object or Expectation was set.
Fixes mocking foreign functions with a variadic argument and no pattern.