Rust has several different mocking libraries. None is clearly superior to all of the others. This project compares their feature sets, using an apples-to-apples approach. Each of several dozen features is implemented with multiple mocking libraries, if possible. The test results then show which features work with which library.
Do you need both static methods and methods that return references with non-
'static lifetimes? Then you should use Mock_Derive. Or perhaps you like to
derive your mocks and you need to validate call sequences? Then you should use Mockers.
Check our the handy table to find the mocking library that’s right for you.