Skip to content

Commit

Permalink
Fix nightly build (dalek-cryptography#619)
Browse files Browse the repository at this point in the history
* Fix nightly build

* Add nightly feature constraint so AVX-512 requires either x86 or x86_64

Co-authored-by: Tony Arcieri <bascule@gmail.com>

* fmt

---------

Co-authored-by: Michael Rosenberg <micro@fastmail.com>
Co-authored-by: Tony Arcieri <bascule@gmail.com>
Co-authored-by: Michael Rosenberg <michael@mrosenberg.pub>
  • Loading branch information
4 people authored Feb 6, 2024
1 parent ba737a3 commit ff1c309
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion curve25519-dalek/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
// - Henry de Valence <hdevalence@hdevalence.ca>

#![no_std]
#![cfg_attr(all(curve25519_dalek_backend = "simd", nightly), feature(stdsimd))]
#![cfg_attr(
all(
curve25519_dalek_backend = "simd",
nightly,
any(target_arch = "x86", target_arch = "x86_64")
),
feature(stdarch_x86_avx512)
)]
#![cfg_attr(
all(curve25519_dalek_backend = "simd", nightly),
feature(avx512_target_feature)
Expand Down

0 comments on commit ff1c309

Please sign in to comment.