Mocktopus
Mocktopus copied to clipboard
Injecting on whole crate
Add feature of injecting all modules in a crate with a single line of code in root module:
#![inject_mocks]
Blocked: https://github.com/rust-lang/rust/issues/41430
https://github.com/rust-lang/rust/issues/41430 is said to be solved, not fully or very elegant yet, but enough for Mocktopus. Unfortunately https://github.com/rust-lang/rust/issues/47075 makes it unusable.
https://github.com/rust-lang/rust/issues/47075 is solved, but some sub-issues of https://github.com/rust-lang/rust/issues/41430 still block it, Syn panics during parsing.
This solution won't work because of https://github.com/CodeSandwich/Mocktopus/issues/29. The only thing that could save this functionality would be some build.rs
or Cargo tool.