Mocktopus icon indicating copy to clipboard operation
Mocktopus copied to clipboard

Injecting on whole crate

Open CodeSandwich opened this issue 7 years ago • 3 comments

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

CodeSandwich avatar Jun 30 '17 16:06 CodeSandwich

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.

CodeSandwich avatar Jan 09 '18 18:01 CodeSandwich

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.

CodeSandwich avatar Mar 08 '18 18:03 CodeSandwich

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.

CodeSandwich avatar Jun 19 '19 18:06 CodeSandwich