New to programming
Never written code before? Start gentle. You will build real, runnable programs from chapter one and learn the ideas behind them as you go.
Whether you are writing your very first line of code or porting a lifetime of systems work, there is a friendly, well-lit path into Rust waiting for you.
Affectionately known as “the book”, this is the official, free guide that takes you from your first program to a confident, idiomatic Rustacean — with clear examples and no assumed background in systems programming.
Read the bookChoose the route that matches where you are today. Each one is curated so you always know the next best step.
Never written code before? Start gentle. You will build real, runnable programs from chapter one and learn the ideas behind them as you go.
Coming from another language? Skip the basics and dive straight into ownership, traits, and the patterns that make Rust feel natural fast.
Working close to the metal? Learn to bring memory safety and fearless concurrency to microcontrollers and low-resource devices.
Reading gets you started; writing code makes it stick. These resources let you learn by running, breaking, and fixing real Rust.
A collection of runnable examples that illustrate every concept in Rust, from hello world to generics and macros. Read, edit, run.
Small, hands-on exercises that teach you by fixing the compiler's own hints. A delightful, bite-sized way to build muscle memory.
The complete, searchable reference for everything Rust ships with — types, traits, and APIs, each with examples you can trust.
Every Rust journey starts the same way. Save this as main.rs, then run rustc main.rs && ./main and watch it greet you back.
fn main() {
println!("Hello, world!");
}
That is it — no setup, no boilerplate. From here, the compiler becomes a patient teacher that points out exactly what to try next.
Rust has one of the friendliest communities in software. When you get stuck, real people are ready to help — usually within minutes.
Browse the forums, chat with other learners, and get unstuck fast.
Visit the communityAsk on the users forum, chat with the community, or search the documentation. Thousands of Rustaceans are happy to help.