Closed willmcpherson2 closed 2 years ago
Sorry for the late response (lost the notification).
I was about to fix issues that you mentioned, but it seems that this library is made kind of obsolete with https://github.com/GoogleChromeLabs/wasm-bindgen-rayon, which has active development and better documentation.
@chemicstry Thanks. Looks like we'll get multithreaded Rust in the browser soon enough.
In trying to run the example I encountered multiple issues.
nightly-2021-03-01
.wasm-bindgen
. Installing wasm-bindgen is confusing and not even recommended according to the wasm-bindgen guide. build_wasm.sh should instead use wasm-pack.cargo run --example simple
is fine but as soon as I want to actually use wasm_thread in my own project I suddenly have to figure out what I need in my Cargo.toml, which .js files I need, where to put my .html file, etc.So essentially my proposal is to (1) switch to an older compiler version, (2) switch to wasm-pack and (3) create a standalone example that can easily be extracted and built without locally linking to wasm_thread.