From d5065ada3cde6d8ee29bf59afbc4c57a4922db00 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Thu, 26 Aug 2021 09:40:50 -0600 Subject: [PATCH] cpufeatures: remove AArch64 `crypto` target feature (#594) It was removed from the nightly compiler in this PR: https://github.com/rust-lang/rust/pull/87729 This crate attempts to provide a 1:1 mapping of CPU feature detection to rustc's own target features, so this PR accordingly removes it. Breaking change; will require a minor version bump. --- cpufeatures/src/aarch64.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cpufeatures/src/aarch64.rs b/cpufeatures/src/aarch64.rs index 9af1bc3e..d59b297f 100644 --- a/cpufeatures/src/aarch64.rs +++ b/cpufeatures/src/aarch64.rs @@ -67,7 +67,6 @@ macro_rules! __expand_check_macro { #[cfg(target_os = "linux")] __expand_check_macro! { ("aes", AES), // Enable AES support. - ("crypto", CRYPTO), // Enable cryptographic instructions. ("sha2", SHA2), // Enable SHA1 and SHA256 support. ("sha3", SHA3), // Enable SHA512 and SHA3 support. } @@ -107,9 +106,6 @@ macro_rules! check { ("aes") => { true }; - ("crypto") => { - true - }; ("sha2") => { true }; @@ -158,9 +154,6 @@ macro_rules! check { ("aes") => { true }; - ("crypto") => { - true - }; ("sha2") => { true };