💻
← All courses
Rust Beginner Course: 6 Free Lessons
📘 6 / 6 lessons⬇️ 6 practice files🌱 Beginner💸 Free
Rust is a fast, safe systems language loved for reliable tools. Six lessons: installing Rust and Cargo, variables and types, ownership and borrowing, structs and enums, error handling with Result, and a CSV summary tool.
- 1Rust Lesson 1: Install Rust and CargoInstall Rust with rustup, create a project with cargo new, build and run with cargo run, and understand Cargo.toml and src/main.rs.
- 2Rust Lesson 2: Variables, Mutability and TypesRust variables are immutable by default: let and let mut, integer and float types, casting with as, string slices vs String, and…
- 3Rust Lesson 3: Ownership and BorrowingRust’s core idea explained simply: each value has one owner, moves, borrowing with & and &mut, and why this removes whole classes…
- 4Rust Lesson 4: Structs and EnumsModel data with structs and impl blocks, enums with data, and match to handle every case — the patterns behind most Rust…
- 5Rust Lesson 5: Error Handling With ResultHandle failures without exceptions: Result and Option, the ? operator, map_err, expect vs unwrap, and returning clear errors.
- 6Rust Lesson 6: Project — A CSV Summary ToolBuild a small command-line tool that reads sales.csv, parses rows safely, totals sales by region in a BTreeMap and prints a report,…
Related: why learn Rust.