-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the circular crate dependency by fooling rustdoc
mockall depends on mockall_derive, because it reexports its macros. But mockall_derive has a dev dependency on mockall, because of its doc tests. This makes publishing new versions to crates.io painful, and it recently broke mockall_derive's docs on docs.rs. This commit moves all of mockall_derive's doc tests into mockall by fooling rustdoc. When #[cfg(rustdoc)] is set, mockall doesn't reexport anything from mockall_derive. Instead it defines some empty macros and documents those instead. It's not perfect, but it'll have to do until there's a better solution for rust-lang/rust#49553 . CC @jasongrlicky
- Loading branch information
Showing
3 changed files
with
194 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.