dimforge / rapier.rs

Official website for the Rapier physics engine.
https://rapier.rs
17 stars 48 forks source link

Add description of wasm-bindgen feature #13

Closed arpan-dhatt closed 3 years ago

arpan-dhatt commented 3 years ago

rapier depends on the instant crate which won't compile for WASM unless the appropriate feature flags are turned on. This can be done through using rapier's wasm-bindgen feature. I added a mention of this feature on the Getting started part of the user guide so people won't have to dig around for this information since the error messages from the browser (these happen at ES6 module linking) aren't very helpful.

sebcrozet commented 3 years ago

Thank you for this PR! I am currently rewriting the docs completely (in the complete_docs branch). I will close this PR and add the suggested modification to my ongoing rewrite.