From f09c197c4cec4079f62e461541b92c031e2b709d Mon Sep 17 00:00:00 2001 From: yufeng <321353225@qq.com> Date: Sat, 11 May 2024 17:12:02 +0800 Subject: [PATCH] feat: stdsimd error in nightly --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bf6ab72..34eda2d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,8 @@ #![no_main] #![feature(naked_functions)] #![feature(asm_const)] -#![feature(stdsimd)] +#![feature(cfg_version)] +#![cfg_attr(not(version("1.79")), feature(stdsimd))] #![feature(const_mut_refs)] #![feature(const_slice_from_raw_parts_mut)] #![cfg_attr(target_arch = "riscv64", feature(riscv_ext_intrinsics))]