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
PREDICT THE NEXT STATE. THEN STEP.Who owns it now?
THE OWNERSHIP BENCHTRACE A MODEL / NO CODE EXECUTION
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? +
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
PATH 010/4 logged
THE FIRST BUILD
PATH 020/4 logged
EXPRESS THE WORK
PATH 030/5 logged
OWNERSHIP WITHOUT THE PANIC
PATH 040/6 logged
MODEL THE DOMAIN
PATH 050/4 logged
COLLECTIONS THAT WORK
PATH 060/6 logged
REUSE THE IDEA
PATH 070/5 logged
PACKAGES, FILES & TOOLS
PATH 080/3 logged
CONFIDENCE IN THE BUILD
PATH 090/3 logged
MEMORY & SHARED OWNERSHIP
PATH 100/4 logged
CONCURRENCY WITH A CONTRACT
PATH 110/4 logged
ASYNC & SYSTEM BOUNDARIES
PATH 120/5 logged
DESIGN, SAFETY & SHIPPING
NOW MAKE IT DO SOMETHINGA server. A chat room.
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.