Skip to content

Whitelist aes and sha target_features? #44544

Closed
@newpavlov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-acceptedCategory: A feature request that has been accepted pending implementation.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions