Yew Introduction

To get started with Rust frontend we need some tooling.

First install Trunk - bundler for Wasm assets:

cargo install trunk
# or
brew install trunk # for Mac

Also we need make Rust able to compile to WASM:

rustup target add wasm32-unknown-unknown
cargo install --locked wasm-bindgen-cli

Now create new project:

cargo new <project-name>

To install yew as a dependency add following to the [dependencies] section of Cargo.toml:

yew = "0.19"