1.
Introduction
1.1.
Installation
1.2.
Hello, World!
1.3.
The Design of Rust
2.
Tutorial
3.
Primitive Rust
3.1.
Variable Bindings
3.2.
Functions
3.3.
Scalar Types
3.4.
Compound Types
3.5.
Comments
3.6.
Control flow with `if`
3.7.
Loops
4.
Ownership & borrowing
4.1.
Ownership
4.2.
References & Borrowing
4.3.
Lifetimes
5.
Structs
5.1.
Method Syntax
5.2.
Generics
5.3.
Advanced
6.
Enums
6.1.
Match
6.2.
Patterns
6.3.
Option
6.4.
if let
7.
Crates & Modules
8.
Error Handling
9.
Basic Collections
9.1.
Vectors
9.2.
Strings
9.3.
`HashMap
`
10.
Traits
11.
Closures
12.
Iterators
13.
I/O
13.1.
`Read` & `Write`
13.2.
`std::fs`
13.3.
`std::path`
13.4.
`std::env`
14.
Testing
15.
Smart Pointers
15.1.
`Deref`
15.2.
`Deref` coercions
15.3.
`Box
`
15.4.
`Rc
`
16.
Concurrency
16.1.
Threads
16.2.
`Send` & `Sync`
16.3.
`Arc
`
16.4.
`Mutex
`
16.5.
`Channels`
17.
Unsafe Rust
17.1.
Raw Pointers
17.2.
transmute
18.
FFI
18.1.
Conditional Compilation
18.2.
Bindings to C
18.3.
Using Rust from Other Languages
18.4.
`static`
19.
Cargo
19.1.
Crates.io
20.
Advanced Type System Features
20.1.
Associated Types
20.2.
Trait Objects
20.3.
UFCS
20.4.
Coherence
21.
Interior mutability
21.1.
`Cell
`
21.2.
`RefCell
`
22.
Macros
23.
Nightly Rust
The Rust Programming Language
This book is in the process of being rewritten. Some sections are in form of drafts and others haven't been rewritten yet. The stable version can be found
here
.
Tutorial