Lokathor / bytemuck

A crate for mucking around with piles of bytes
https://docs.rs/bytemuck
Apache License 2.0
697 stars 77 forks source link

Under `features = ["nightly_stdsimd"]`, only enable `stdarch_x86_avx512` feature on x86 or x86_64 targets #225

Closed zachs18 closed 7 months ago

zachs18 commented 7 months ago

... as the feature does not exist on other targets.

$ cargo new mwe
$ cd mwe
$ cargo add bytemuck -F nightly_stdsimd
$ cargo +nightly build --target aarch64-unknown-linux-gnu
   Compiling bytemuck v1.14.2
error[E0635]: unknown feature `stdarch_x86_avx512`
 --> /home/zachary/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bytemuck-1.14.2/src/lib.rs:7:50
  |
7 | #![cfg_attr(feature = "nightly_stdsimd", feature(stdarch_x86_avx512))]
  |                                                  ^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `bytemuck` (lib) due to 1 previous error
Lokathor commented 7 months ago

I'm shouting and stamping my foot at the existence of other arches, and also at the same time trying to get people to program for an ARM target. Such is life.

Lokathor commented 7 months ago

Released bytemuck-1.14.3