unstale

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 init

@unstale/cli on npm

mockall 0.151 changes

Behavior and default changes 1

  • mockall is now compatible with the #[auto_impl] macro.

    0.15.0release notes

mockall 0.148 changes

Breaking changes 1

New APIs and options 1

  • Structs and traits with const generics can now be mocked.

    0.14.0release notes

Behavior and default changes 2

  • Expectations with a non-exact call count can now be used in Sequences.

    0.14.0release notes

  • Mockall is now compatible with the #[trait_variant::make] macro.

    0.14.0release notes

Fixes and other changes 4

  • Generated code fully qualifies Send and Sync, avoiding conflicts when structs named Send or Sync are in scope.

    0.14.0release notes

  • Generated code suppresses single-use-lifetimes lints when the original code would not have triggered the warning.

    0.14.0release notes

  • A panic no longer poisons a static mock method's internal Mutex, including when no Context object or Expectation was set.

    0.14.0release notes

  • Fixes mocking foreign functions with a variadic argument and no pattern.

    0.14.0release notes