Why Rust?
1.
Welcome
❱
1.1.
Rust
❱
1.1.1.
The Rust Buzz
1.1.2.
The Rust Bits
1.2.
History
❱
1.2.1.
Curiosity
1.2.2.
Governance
1.2.3.
Teams
1.2.4.
The Core Team
1.2.5.
The Foundation
1.3.
Setup
❱
1.3.1.
Editors
1.3.2.
Online
1.3.3.
Playground
1.4.
Summary
2.
Hello Rust
❱
2.1.
Main
❱
2.1.1.
Hello World
2.2.
Variables Bindings
❱
2.2.1.
Example
2.2.2.
Shadowing
2.2.3.
Constants
2.3.
Primitive Types
❱
2.3.1.
Scalar
❱
2.3.1.1.
Example
2.3.2.
Compound
❱
2.3.2.1.
Example
2.4.
Functions
❱
2.4.1.
Example 1
2.4.2.
Example 2
2.5.
Ownership System
❱
2.5.1.
The Stack and the Heap
2.5.2.
Ownership Rules
❱
2.5.2.1.
Example
2.5.2.2.
Move
2.5.2.3.
Copy
2.5.2.4.
Clone
2.5.3.
Borrowing
❱
2.5.3.1.
Immutable and Mutable References
2.5.3.2.
Dangling References
2.5.3.3.
Rules of References
2.5.3.4.
Lifetime
❱
2.5.3.4.1.
Lifetime in Functions
2.5.3.4.2.
Lifetime in Structs
2.5.3.4.3.
Lifetime Elision
❱
2.5.3.4.3.1.
Example
2.6.
Structs
❱
2.6.1.
Structs
❱
2.6.1.1.
Init Shorthand
2.6.1.2.
Update Syntax
2.6.2.
Tuple Structs
❱
2.6.2.1.
Example
2.6.3.
Impl and Methods
2.7.
Expressions
❱
2.7.1.
Example
2.8.
Traits
❱
2.8.1.
Example 1
2.8.2.
Example 2
2.9.
Strings Slices
2.10.
Closures
❱
2.10.1.
Closures
2.11.
Multithreading
❱
2.11.1.
Message Passing
2.11.2.
Shared State
2.12.
Async Await
❱
2.12.1.
Async Await Example
3.
More Of Rust
❱
3.1.
Pattern Matching
❱
3.1.1.
Pattern Matching Example
3.1.2.
Destructuring
3.1.3.
Destructuring Example
3.1.4.
Guards
3.1.5.
Guards Example
3.1.6.
Binding
3.1.7.
Binding Example
3.1.8.
Binding Destructuring Example
3.2.
Enumerations
❱
3.2.1.
Enumerations Example
3.2.2.
Enumerations With Data
3.2.3.
Enumerations With Data Example
3.2.4.
Enumerations Destructuring
3.2.5.
Enumerations Destructuring Example
3.3.
Generic Types
❱
3.3.1.
Generic Types Example
3.3.2.
Bounds
3.3.3.
Bounds Example
3.3.4.
Multiple Bounds
3.3.5.
Multiple Bounds Example
3.3.6.
Where Clause
3.3.7.
Where Clause Example
3.4.
Option
❱
3.4.1.
Option Example
3.4.2.
If Let
3.4.3.
If Let Example
3.4.4.
While Let
3.4.5.
While Let Example
3.5.
Result
❱
3.5.1.
Result Example
3.6.
Error Handling
❱
3.6.1.
Error Handling Example
3.7.
Modules
❱
3.7.1.
Modules Use
3.7.2.
Modules Use Example
3.7.3.
Modules Definition
3.7.4.
Modules Definition Example
3.7.5.
Modules Inline
3.7.6.
Modules Referencing
3.7.7.
Modules Exporting
3.7.8.
Modules Struct Visibility
3.7.9.
Modules Prelude
3.8.
Macro Rules
❱
3.8.1.
Macro Rules
3.9.
Attributes
❱
3.9.1.
Attributes Example
3.10.
Unsafe
❱
3.10.1.
Unsafe Example
3.11.
Testing
❱
3.11.1.
Unit Testing
3.11.2.
Unit Testing Example
3.11.3.
Documentation Testing
3.11.4.
Documentation Testing Example
4.
Rust Values
❱
4.1.
Quick Comparisons
❱
4.1.1.
Rust vs Python
4.1.2.
Rust vs Java
4.1.3.
Rust vs C/C++
4.1.4.
Rust vs Go
4.1.5.
Final Thoughts
4.2.
Rust Main Strengths
4.3.
Rust Main Weaknesses
5.
Rust Ecosystem
❱
5.1.
Tools
❱
5.1.1.
Cargo
❱
5.1.1.1.
Cargo New Project
5.1.1.2.
Cargo Toml
5.1.1.3.
Cargo Dependencies
5.1.1.4.
Cargo Commands
5.1.2.
Rustfmt
❱
5.1.2.1.
Rustfmt Config
5.1.2.2.
Rustfmt Example
5.1.3.
Clippy
❱
5.1.3.1.
Clippy Config
5.1.3.2.
Clippy Example
5.1.4.
Rustdoc
❱
5.1.4.1.
Rustdoc Example
5.1.4.2.
Rustdoc Example Output
5.2.
Libraries
❱
5.2.1.
Crates
5.2.2.
Common Crates
5.2.3.
Awesome Rust
5.3.
Applications
❱
5.3.1.
CLI
❱
5.3.1.1.
mdBook
5.3.1.2.
This Source
5.3.2.
System
❱
5.3.2.1.
Servo
5.3.2.2.
Redox
5.3.2.3.
InfluxDB
5.3.3.
Embedded
5.3.4.
Web Assembly
❱
5.3.4.1.
Lucet & Cranelift
5.3.4.2.
Bytecode Alliance
5.3.4.3.
Ruffle
5.3.5.
Web Framework
❱
5.3.5.1.
Actix
5.3.5.2.
Actix Example
5.3.5.3.
Actix Benchmark
5.3.5.4.
Rocket
5.3.6.
Gaming
❱
5.3.6.1.
John Carmack
5.3.6.2.
Bevy Engine
5.3.7.
Science
5.4.
Companies
❱
5.4.1.
Mozilla
5.4.2.
NPM
5.4.3.
Figma
5.4.4.
1Password
5.4.5.
Shopify
5.4.6.
OneSignal
5.4.7.
Cloudflare
5.4.8.
Discord
5.4.9.
Dropbox
5.4.10.
Facebook
5.4.11.
Apple
5.4.12.
Amazon
5.4.13.
Microsoft
5.4.14.
Chrome
5.4.15.
Linux
5.5.
References
❱
5.5.1.
The Book
5.5.2.
Official Books
5.5.3.
Third Parties Books
5.5.4.
Tutorials
5.5.5.
Community
Thanks
Light
Rust
Coal
Navy (default)
Ayu
Why Rust?
Hello Rust
Main
Variables Bindings
Primitive Types
Functions
Ownership System
Structs
Expressions
Traits
Strings Slices
Closures
Multithreading
Async Await