Rs

Rust

advanced

Memory safe. Blazingly fast. Compiler as therapist.

Rust is a systems programming language focused on safety, performance, and concurrency. The borrow checker will reject your code at first. Then at second. Eventually, you'll understand why — and you'll become a better programmer for it.

Systems ProgrammingWebAssemblyGame EnginesEmbeddedCLI Tools
0%
0/8 lessons

Setup

Rust is installed via rustup, the official toolchain manager. It handles compiler versions, cross-compilation targets, and documentation — all in one tool.

Bash
# Download and run rustup-init.exe from:
# https://www.rust-lang.org/tools/install

# Or via winget:
winget install Rustlang.Rustup

# After installation, restart your terminal:
rustup update stable
rustc --version
cargo --version

Lessons

1
Hello, World!
Don't worry, the borrow checker is your friend. It's a very aggressive friend wh
2
Variables & Types
In Rust, variables are immutable by default. This is not a bug. This is the enti
3
Ownership & Borrowing
This is the chapter that makes people close their laptop and go for a walk. But
4
Structs & Enums
Rust doesn't have classes, but it has structs + impl blocks, which are better in
5
Error Handling
Rust doesn't have exceptions. Instead it has Result<T, E> and Option<T>, which f
6
Traits & Generics
Traits are Rust's version of interfaces. Generics let you write code that works
7
Mini Project: CLI Calculator
Let's build a command-line calculator using everything we've learned: structs, e
8
Rust Cheatsheet
Ownership, pattern matching, and the types you use daily — one page.