Building a front app with Rust (yes you can) and Yew
JS/TS is killing me. Now that I use Rust everyday, I have to try Yew, a front framework for Rust to create WASM apps, I spotted it long time ago but it wasn’t mature enough for my use case… guess what — now is the time ! The project is still alive and well !
Rust fullstack dev it is.
Part 1: Setup and basics
Let’s start with the basics, how to install it.
cargo new project
cargo add yew # (Using cargo-edit)
Create file app.rs:
Obviously I have to call it in my main.rs
And… yeah, that’s it. In this example I added Header and Root in app.rs, (we will come to it), and I must say this is a really simple setup, the hardest part would be handlings assets and js libs in the build process to finish the setup. So how did I do ?