Rust logo
Rust 1.30.0

The Rust Programming Language

“The Rust Programming Language,” is an introductory book about Rust. There are multiple editions including a printed edition and a free online edition.

The source for all editions lives on GitHub. Please open issues with any questions, concerns, or tweaks.

2018 Edition

The 2018 edition of the book is an online "living version" of the book; based on the second edition. This online book is updated as Rust updates. If you're not sure what edition of the book to read, you should prefer this edition.

You can find the 2018 edition here.

Second Edition

The second edition is a complete re-write of the first edition. The second edition is based on Rust 1.21 and may not touch upon features found in subsequent versions of Rust.

You can purchase a dead-tree copy from NoStarch Press.

This edition of the book is frozen; it contains exactly what's in the printed book.

You can find the second edition here.

First Edition

The first edition is completely frozen but is still included in the documentation for historical reasons.

You can find the first edition here.