Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Injecting on whole crate #4

Open
CodeSandwich opened this issue Jun 30, 2017 · 3 comments
Open

Injecting on whole crate #4

CodeSandwich opened this issue Jun 30, 2017 · 3 comments

Comments

@CodeSandwich
Copy link
Owner

Add feature of injecting all modules in a crate with a single line of code in root module:
#![inject_mocks]
Blocked: rust-lang/rust#41430

@CodeSandwich
Copy link
Owner Author

CodeSandwich commented Jan 9, 2018

rust-lang/rust#41430 is said to be solved, not fully or very elegant yet, but enough for Mocktopus. Unfortunately rust-lang/rust#47075 makes it unusable.

@CodeSandwich
Copy link
Owner Author

rust-lang/rust#47075 is solved, but some sub-issues of rust-lang/rust#41430 still block it, Syn panics during parsing.

@CodeSandwich
Copy link
Owner Author

This solution won't work because of #29. The only thing that could save this functionality would be some build.rs or Cargo tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant