fn 01

RUST

A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.

fn 02
let x
let y = x
// x is moved

Every value in Rust has a variable that's called its owner. There can only be one owner at a time. When the owner goes out of scope, the value will be dropped.

This simple set of rules forms the foundation of Rust's memory safety guarantees — no garbage collector needed, no runtime overhead, just compile-time verification that your program respects the laws of ownership.

Move semantics ensure that when you assign a value to a new variable, the original binding becomes invalid. The compiler catches use-after-move errors before your code ever runs.

fn 03
"Every reference has a lifetime"

Shared borrows coexist peacefully — but a mutable borrow demands exclusivity.

fn 04
thread::spawn Arc<Mutex<T>> .lock().unwrap()

Fearless Concurrency

fn 05

cargo build

A growing ecosystem of libraries, all a cargo add away.