Skip to content

Working with conditional compilation distinct from cargo features #14365

Closed
@cameron1024

Description

@cameron1024

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 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-supportCategory: support questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions