Skip to content

Commit

Permalink
Only check target-feature on wasm32
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Oct 4, 2024
1 parent 1c8c7e5 commit 0edb308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Note: `atomics` is whitelisted in `target_feature` detection, but `bulk-memory` isn't,
// so we can check only presence of the former. This should be enough to catch most common
// mistake (forgetting to pass `RUSTFLAGS` altogether).
#[cfg(all(not(doc), not(target_feature = "atomics")))]
#[cfg(all(target_arch = "wasm32", not(doc), not(target_feature = "atomics")))]
compile_error!("Did you forget to enable `atomics` and `bulk-memory` features as outlined in wasm-bindgen-rayon README?");

use crossbeam_channel::{bounded, Receiver, Sender};
Expand Down

0 comments on commit 0edb308

Please sign in to comment.