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

Working with conditional compilation distinct from cargo features #14365

Closed
cameron1024 opened this issue Mar 16, 2023 · 0 comments · Fixed by #14911
Closed

Working with conditional compilation distinct from cargo features #14365

cameron1024 opened this issue Mar 16, 2023 · 0 comments · Fixed by #14911
Labels
C-support Category: support questions

Comments

@cameron1024
Copy link
Contributor

When writing miri tests, it's common to have certain bits of code annotated with #[cfg(miri)].

If these attributes were using cargo features (like #[cfg(feature = "miri")]), I could get RA to turn this feature on with the cargo.features config parameter. However, I'm not sure what the equivalent config key is for plain --cfg features.

Apologies if this has been asked before, I had a look through old issues but could only find questions relating to #[cfg(feature = "...")]. Thanks 😁

@cameron1024 cameron1024 added the C-support Category: support questions label Mar 16, 2023
@bors bors closed this as completed in e8dbb8e May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-support Category: support questions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant