Crate features / mockall
Feature flags · mockall 0.15.0 · from crates.io 2026-10-24
mockall features: what each one does, and the line to copy
Short answermockall 0.15.0 has 1 feature. Nothing is on by default: turn on what you use. It needs Rust 1.77.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
nightly | mockall_derive/nightly_derive, downcast/nightly |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version mockall declares (rust-version), and the release that changed it:
- 0.11.3 (2022-10-18): Rust 1.45
- 0.12.0 (2023-12-10): Rust 1.60
- 0.13.0 (2024-07-21): Rust 1.71
- 0.14.0 (2025-11-22): Rust 1.77.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p mockall --precise <version>, or use resolver 3, which picks compatible versions for you.
More on mockall
Real downloads, dependents and alternatives: mockall crate data (406.7K real downloads a day, 1,393 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itmockall crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?