We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mock! allows individual methods to be gated by #[cfg()]. It would be handy if that worked for trait impls too. For example,
mock!
#[cfg()]
mock! { struct Foo { } #[cfg(unix)] impl std::os::unix::io::AsRawFd for Foo { //... } #[cfg(windows)] impl std::os::windows::fs::FileExt for Foo { //... } }
We certainly don't want both traits to be compiled at the same time.
The text was updated successfully, but these errors were encountered:
Alloc #[cfg()] attributes on trait impls in mock!
7479baa
mock! already allowed individual methods to be so gated. Now it will work for trait impls, too. Fixes #288
Allow #[cfg()] attributes on trait impls in mock!
7ff1e03
Successfully merging a pull request may close this issue.
mock!
allows individual methods to be gated by#[cfg()]
. It would be handy if that worked for trait impls too. For example,We certainly don't want both traits to be compiled at the same time.
The text was updated successfully, but these errors were encountered: