Vite + Webassembly starter project
You need to get these prerequisites installed:
git clone https://github.com/zuramai/vite-wasm-starter
cd vite-wasm-starter
pnpm install # OR npm install
You should open two tabs of terminal. **The order of execution is important and do not close the first window **.
In the first tab, run:
pnpm rsw watch
In the second tab, run:
pnpm dev
Run:
pnpm run build
pnpm rsw new hello-world
This will create a crate in a folder named hello-world
rsw.toml
to register the crate[[crates]]
name = "hello-world"