Skip to content

Rust features feature #451

@blackliner

Description

@blackliner

I wanted to check the pulse on usage of the rust features feature in safety critical code. For C/C++, preprocessor macros and defines are to be avoided, for multiple reasons. I think the same reasons apply for rust, and usage of cfg should be reduced to a minimum. Thoughts?

    #[cfg(feature = "feature_a")]
    foo
    #[cfg(not(feature = "feature_a"))]
    bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions