Skip to content

Whitelist aes and sha target_features? #44544

Description

@newpavlov

I would like to use them in the RustCrypto project for conditional compilation. So if there is no particular reason against including them, it would be nice to have them.

This code currently does not work as intended:

#[cfg(target_feature="aes")]
fn main() {
    println!("aes enabled");
}

#[cfg(not(target_feature="aes"))]
fn main() {
    println!("aes disabled");
}

Related: #29717

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-acceptedCategory: A feature request that has been accepted pending implementation.T-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions