-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-feature-acceptedCategory: A feature request that has been accepted pending implementation.Category: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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
kazcw
Metadata
Metadata
Assignees
Labels
C-feature-acceptedCategory: A feature request that has been accepted pending implementation.Category: 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.Relevant to the library API team, which will review and decide on the PR/issue.