An example with Svelte + Rust WASM module (inside Web Worker)
The Rust's code is inside /Rust folder The Svelte's code is inside /Svelte folder
This example is using Web Workers API, so rollup config is updated accordingly.
wasm-pack
with cargo install wasm-pack
if you have Apple Silicon (M1)