- Install rust with the nightly channel
- Install the
wasm32
target withrustup target add wasm32-unknown-unknown
- Install cargo post with
cargo install cargo-post
- To build the web project, install Node.js
Run cargo post build --target wasm32-unknown-unknown --release
.
A run configuration is provided for CLion.
- Run
cd web
- Run
npm i
- Run
npm run dev
Rebuilding the rust will automatically reload the web project.