This is the basic boilerplate for generating a
nuuro project with targets on desktop and web
(wasm32-unknown-unknown target
).
On desktop (Windows, Linux, MacOS) simply run:
cargo build --release
For web target, run:
cargo build --target=wasm32-unknown-unknown
On desktop (Windows, Linux, MacOS) simply run:
cargo run --release
For web target, first build with the instructions above and serve the html folder with a static server. For example, if you have installed node, run:
npx serve html