A starter project for you to create a blazingly fast web application
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
- Generate rust crate
pnpm rsw new hello-world
This will create a crate in a folder named hello-world
- Edit
rsw.toml
to register the crate
[[crates]]
name = "hello-world"