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

feat: provide a cargo feature to disable the proc macro inference in #221 #258

Closed
rbtcollins opened this issue May 31, 2024 · 2 comments
Closed

Comments

@rbtcollins
Copy link

rbtcollins commented May 31, 2024

Reading Cargo.toml during compilation is problematic - there isn't necessarily a Cargo.toml to read. This was added in #221

For us, we build with Bazel, and do happen to have a Cargo.toml, but it isn't copied into the build environment - because rustc doesn't typically need it. And indeed with about 1000 crates in use, this 0.20 update of rstest is the first we've encountered it.

@la10736
Copy link
Owner

la10736 commented May 31, 2024

Ok, I've suspected this issue but l I've undervalued it. I'll add a feature flag for it disabled by default ASAP.

@la10736 la10736 closed this as completed in fef4f7b Jun 1, 2024
@la10736
Copy link
Owner

la10736 commented Jun 1, 2024

I choose to add the feature crate-name but enabled by default: you can disable this feature with:

rstest = { version = "0.21.0", default-features = false }

The 0.21.0 version will be on-line soon.

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

No branches or pull requests

2 participants