Build a Fullstack application in Rust!
and Google says that replacing C/C++ in firmware with Rust is easy
π Ciao, Francesco here!
Welcome to the latest Rust newsletter! π
In this one, I collected some interesting articles I found about the rust Foundation, thoughts of google about rust and an interesting video!
Letβs start:
Google says replacing C/C++ in firmware with Rust is easy: Google recently rewrote the firmware for protected virtual machines in its Android Virtualization Framework using the Rust programming language and wants you to do the same, assuming you deal with firmware: https://www.theregister.com/2024/09/06/google_rust_c_code_language/
Rustβs Rapid Rise: in this article an interesting update about the latest news and considerations from the Rust Foundation about the Rust ecosystem, Security initiative and Interoperability with C++: https://thenewstack.io/rusts-rapid-rise-foundation-fuels-language-growth/
Rust - the Definitive Summary: A nice recap to get a good recap about Rust: https://app.daily.dev/posts/rust-in-2023-the-definitive-summary--ff36a1mei
On a personal note, I just released what I believe is the best video on my YouTube channel so far. It's a full-stack application where we use Rust on both the front end and back end. For the frontend, we use WebAssembly (WASM) with the Yew framework β a framework you might not have heard of, but it's heavily inspired by React and uses Rust. It's pretty impressive if you're familiar with React and want to learn Rust! I decided to try Rocket for the backend, and the developer experience has been fantastic so far β the entire backend consists of just about 100 lines of code. For the database, I made the solid choice of using PostgreSQL, running in a Docker container! So, to make a recap of the technologies used in this video, we have:
For the Frontend:
- Rust - Core Programming Language
- Web Assembly - For running Rust in the browser
- Yew - Rust Framework for building client web apps
- Trunk - For serving the frontend app
- Tailwind CSS - For styling the frontend
For the Backend:
- Rust - Core Programming Language
- Rocket - Rust Framework for building web servers
For the Database:
- Postgres - Relational Database
- Docker - Dockerfile and Docker Compose for running Postgres
I also released a 1000+ lines article to explain it in text format if you prefer: https://dev.to/francescoxx/rust-fullstack-web-app-wasm-yew-rocket-3ian
All the code is open source and available on Github (link in the video description)
I also released another video in which I explained Test Driven Development using Rust
π Useful links
Rust Full Tutorial Playlist (36 videos): A free playlist to learn Rust
Rust From Beginner to Professional (Preorder on Amazon): A Practical guide to go from beginner to expert and become a proficent, qualified Rust Developer
Rust Developers Squad (5800 members): A Squad on daily.dev for Rust Developers
RustCrab (404 stars): An Open source project to learn Rust
Rust Workbook (178 downloads): 25 step-by-step exercises to learn Rust. 50% off.
Rust Cheatsheet (230+ downloads): Your Quick Reference to Rust
The Author - Francesco
To sponsor one of the next issues, you can contact me here