dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.89k stars 242 forks source link

Prevent parallel wasm builds #461

Open bugQ opened 1 year ago

bugQ commented 1 year ago

Attempting to target wasm with the parallel feature on fails because rayon does not natively support it.

Parallelism on WebAssembly is technically achievable through the Web Workers API, but until such functionality is stable, this should provide a better error message.

Vrixyz commented 3 months ago

I believe since https://github.com/rayon-rs/rayon/pull/1110 ; rayon has a synchronous fallback to work on web ; needs verification though.