Trunk (WASM bundler for Rust) - Tutorial
Try Trunk before Yew tutorial Just follow the simplest official tutorial To understand how Trunk behaves.
I’ve simply followed the official getting started.
Set up:
cargo install trunk cargo new trunk-tutorial cd trunk-tutorial Keep the default Hello world code in src/main.rs.
Create index.html:
<html> <head> <link data-trunk rel="scss" href="index.scss"/> </head> </html> Create empty index.scss, and bild:
trunk build Feb 03 18:59:17.553 INFO 📦 starting build Feb 03 18:59:17.