-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nightly build #619
Fix nightly build #619
Conversation
Thank you, this looks great! For anyone reading: we have two SIMD implementations for x86_64—AVX2 and AVX-512. The former has already been stabilized, so it's not an issue. The latter is unstable, and was previously gated by a nightly feature
because |
@tarcieri happy to merge. Shall I also cut a new version (minor or patch?)? |
Co-authored-by: Tony Arcieri <[email protected]>
Thanks for the fast fix. Which version is this targeting? |
This will be a patch bump (ie +0.0.1) for curve-, ed-, and x- crates. Sound good @tarcieri ? |
Yep, sounds good |
This change unfortunately breaks the build for older nightlies. Our company is probably not the only one who uses nightly
Don't know if this particular change could've been done in a backwards-compatible way or not, but just wanted to mention that the latest patch release likely both fixed AND broke a lot of builds. |
@sergiimk this is a breaking change in the nightly compiler. It requires a corresponding breaking change in this library to support. The nightly compiler is definitionally the unstable version of the compiler. Breaking changes can come at any time, the onus is on you to keep what you're building on it stable via meticulous dependency management. |
Is there an accepted way to handle the following scenario? You have a crate that relies on nightly. You pull in curve25519-dalek as a dep, but you don't really care about performance. Can you force dalek to behave as it would in stable, while still using nightly for your own crate? |
I think it's unreasonable to ask for support for anything but the latest version of the nightly compiler |
Right, what I was thinking is something along the lines of a negative feature like IIRC we had a |
@rozbb disabling the
|
Ah nice, that answers it then |
* Enforce undocumented_unsafe_blocks clippy warning * Update dalek dependencies to fix nightly builds See dalek-cryptography/curve25519-dalek#619 * Require fixed version of dalek dependencies --------- Co-authored-by: Norbert Fabritius <[email protected]>
0c665f9 gui: bump dependencies to fix nightly build (jp1ac4) Pull request description: This includes the changes from dalek-cryptography/curve25519-dalek#619 and dalek-cryptography/curve25519-dalek#621. ACKs for top commit: edouardparis: utACK 0c665f9 Tree-SHA512: 414f65ff0d0b102ba43506042ebb3d4acbc67a019620a044d3be4d6b8c950e8c5d5d44fe722d38a0a445b1dc374f5e374b129d32cd66b5fed27cc2d53cc7f8e7
This makes Rust nightly compiler happy again: dalek-cryptography/curve25519-dalek#619
Addresses #618.
This PR fixes the failing build on the latest Rust nightly compiler
rustc 1.78.0-nightly (f067fd608 2024-02-05)
.The
stdsimd
feature has been split into separate features in the latest Rust nightly compiler and its usage needs to be updated to use#![feature(stdarch_x86_avx512)]
instead.See rust-lang/stdarch#1486 and rust-lang/rust#111137.