#mocking

macro mockall_derive

Procedural macros for Mockall

32 releases

0.14.0 Nov 22, 2025
0.13.1 Nov 17, 2024
0.13.0 Jul 21, 2024
0.12.1 Dec 21, 2023
0.1.0 Jul 3, 2019

#325 in #mocking

Download history 1040479/week @ 2025-10-21 1084150/week @ 2025-10-28 1095607/week @ 2025-11-04 1066794/week @ 2025-11-11 1171544/week @ 2025-11-18 793120/week @ 2025-11-25 1004345/week @ 2025-12-02 1179428/week @ 2025-12-09 1008143/week @ 2025-12-16 428014/week @ 2025-12-23 499165/week @ 2025-12-30 1109473/week @ 2026-01-06 1237593/week @ 2026-01-13 1705350/week @ 2026-01-20 1374392/week @ 2026-01-27 1216404/week @ 2026-02-03

5,749,345 downloads per month
Used in 1,863 crates (2 directly)

MIT/Apache

250KB
6K SLoC

Proc Macros for use with Mockall

You probably don't want to use this crate directly. Instead, you should use its reexports via the mockall crate.


Mockall_derive

This crate should never be used directly. You should use mockall instead.

License

mockall is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details

Dependencies

~140–540KB
~13K SLoC