Cargo Features

Rayon has no features set by default.

[dependencies]
rayon = { version = "1.10.0", features = ["web_spin_lock"] }
web_spin_lock

This feature switches to a spin-lock implementation on the browser's main thread to avoid the forbidden atomics.wait.

Only useful on the wasm32-unknown-unknown target.

Enables wasm_sync, web_spin_lock of rayon-core