Add the sha512, sm3 and sm4 target features

Add the feature in `core/lib.rs`
This commit is contained in:
sayantn
2024-08-01 23:13:51 +05:30
parent e60ebb2f2c
commit 41b017ec99
10 changed files with 38 additions and 2 deletions

View File

@@ -4,6 +4,15 @@
#[stable(feature = "simd_arch", since = "1.27.0")]
pub use crate::core_arch::arch::*;
#[cfg(bootstrap)]
#[allow(dead_code)]
#[unstable(feature = "sha512_sm_x86", issue = "126624")]
fn dummy() {
// AArch64 also has a target feature named `sm4`, so we need `#![feature(sha512_sm_x86)]` in lib.rs
// But as the bootstrap compiler doesn't know about this feature yet, we need to convert it to a
// library feature until bootstrap gets bumped
}
/// Inline assembly.
///
/// Refer to [Rust By Example] for a usage guide and the [reference] for

View File

@@ -260,6 +260,7 @@
#![feature(powerpc_target_feature)]
#![feature(riscv_target_feature)]
#![feature(rtm_target_feature)]
#![feature(sha512_sm_x86)]
#![feature(sse4a_target_feature)]
#![feature(tbm_target_feature)]
#![feature(wasm_target_feature)]