Rust Programming Guide

Rust is a systems programming language focused on safety, speed, and concurrency.

Why Rust?

  • Memory safety without garbage collection[1]
  • Zero-cost abstractions — high-level features compile down to efficient machine code
  • Fearless concurrency — the type system prevents data races at compile time

Ownership

let s = String::from("hello");  // s owns the String
let t = s;                      // ownership moves to t
// println!("{}", s);           // ❌ compile error: s is moved

Blockquotes

Rust is the most loved language among developers. — Stack Overflow Developer Survey

Lists

  1. Install Rust via rustup
  2. Write your first program
  3. Build something amazing

Math

\[ \vec{F} = m\vec{a} \]