I'm using wasm-bindgen-rayon which has the following statement to emit a worker.js file.
#[allow(unused_must_use)]
fn _ensure_worker_emitted() {
// Just ensure that the worker is emitted into the output folder, but don't actually use the URL.
wasm_bindgen::link_to!(module = "/src/workerHelpers.worker.js");
}
Describe the Bug
I'm using wasm-bindgen-rayon which has the following statement to emit a worker.js file.
https://github.com/RReverser/wasm-bindgen-rayon/blob/main/src/lib.rs#L56-L60
The problem is that since wasm-bindgen 0.2.95 this syntax doesn't work at all.
Steps to Reproduce
Requires sccache, clang, and llvm
npm i
, `npm run wasm-build-allExpected Behavior
The file structure generated by a project using wasm-bindgen-rayon should look like this
Actual Behavior
However, since worker.js is not emitted as of 0.2.95, it is generated like this.