From 6930f19fb9c120e1676253601abb07ba114fc385 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 12 Mar 2024 01:56:44 +0100 Subject: [PATCH] chore: use avx512 x86 feature only behind a crate avx512 feature (#231) --- fields/src/lib.rs | 2 +- starky/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fields/src/lib.rs b/fields/src/lib.rs index a7722c30..a8ff3aef 100644 --- a/fields/src/lib.rs +++ b/fields/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(stdarch_x86_avx512)] +#![cfg_attr(feature = "avx512", feature(stdarch_x86_avx512))] //#![cfg_attr(feature = "avx512", feature(stdsimd))] extern crate rand; diff --git a/starky/src/lib.rs b/starky/src/lib.rs index a195e0a2..c52bbeae 100644 --- a/starky/src/lib.rs +++ b/starky/src/lib.rs @@ -2,7 +2,7 @@ #![allow(dead_code)] #![allow(clippy::type_complexity)] #![allow(clippy::too_many_arguments)] -#![feature(stdarch_x86_avx512)] +#![cfg_attr(feature = "avx512", feature(stdarch_x86_avx512))] pub mod polsarray; pub mod polutils;