Skip to lesson content
navan✳THE BUILD LABRUST
0/53 complete
A LITTLE FRICTION. A LOT OF UNDERSTANDING.

Make the contract.
Build the confidence.

Learn Rust from the first compile to the systems you want to make. Ownership that makes sense. Errors you can work with. Code you can explain.

Start your first build↗53 lessons. Rust 2024 edition. Eight complete cookbook projects.
53lessons to build on
12paths through Rust
08cookbook projects
00ideas in your log
NEW TO CODE?

Start at the first lesson. The workbench walks through installing Rust and running each example.

ALREADY BUILDING?

Trace ownership below, work through the advanced paths, or go straight to a cookbook project.

THE BIT THAT MAKES RUST CLICK

Who owns it now?

PREDICT THE NEXT STATE. THEN STEP.
THE OWNERSHIP BENCHTRACE A MODEL / NO CODE EXECUTION
ownership.rs
let first = String::from("build");
let second = first;
println!("{second}");
ONE STRING BUFFER
build
first availablesecondnot active
Owner
first
Borrow
none
01 / Create the owner

first owns the String buffer. There is one owner responsible for dropping it.

1 / 3
What would the compiler refuse here? +
rejected_change.rs
println!("{first}");

Using first after the move is rejected (E0382). Clone only if independent ownership is actually needed.

From first build to solid ground.

Set up your workbench ↗
53 lessons
NOW MAKE IT DO SOMETHING

A server. A chat room.
A little desktop magic.

Complete projects with manifests, source files, commands, tests, and room to make them your own. Including Axum, Tokio, SQLite, egui, and Tauri 2.

Open the cookbook ↗
Built with curiosity. By Navan Sami. ↗Rust · Make the contract clear. Then build.