Rust Tutorials
In this tutorial, you'll learn about Rust Tutorials. We cover key concepts, practical examples, and best practices to help you understand and apply this topic effectively.
Rust is a systems programming language focused on memory safety and concurrency without a garbage collector. It powers Firefox, Dropbox, and Cloudflare infrastructure.
1. What is Rust?
Ownership, safety, zero-cost, use cases
2. Installation & Setup
rustup, cargo, rustc, rustfmt
3. Variables
let, mut, constants, shadowing, types
4. Control Flow
if/else, loop, while, for, match
5. Functions
fn, expressions vs statements, return
6. Ownership
Ownership rules, move, copy, borrow
7. References & Borrowing
&, &mut, rules, dangling
8. Slices
String slices, array slices, &str
9. Structs
struct, field init shorthand, tuple struct
10. Enums
enum, variants, Option, Result
11. Match
Exhaustive matching, patterns, guards, binding
12. Patterns
Destructuring, let patterns, function params
13. Strings
String, &str, conversion, formatting
14. Collections
Vec, HashMap, HashSet, iterators
15. Generics
16. Traits
Trait definition, impl, derive, associated types
17. Lifetimes
'a, lifetime elision, struct lifetimes
18. Lifetimes Advanced
Multiple lifetimes, subtyping, NLL
19. Smart Pointers
Box, Rc, RefCell, interior mutability
20. Cow
Clone on write, borrow management
Advanced Topics & Projects
21. Reference Counting
Arc, Mutex, RwLock, Barrier
22. Memory Layout
repr, alignment, size_of, transmute
23. Error Handling
Result, Option, ?, anyhow, thiserror
24. Panic
panic!, catch_unwind, abort
25. File I/O
File, BufReader, BufWriter, Read/Write
26. Path & PathBuf
Path, PathBuf, filesystem operations
27. Serialization
serde, Serialize/Deserialize, JSON, YAML
28. Logging & Tracing
log, env_logger, tracing, spans
29. Threads
thread::spawn, join, scoped threads
30. Message Passing
channels, mpsc, async channels
31. Shared State
Arc, Mutex, RwLock, poisoning
32. Async Basics
async/await, futures, executors
33. Tokio
Tokio runtime, tasks, select!, I/O
34. Async Advanced
Async traits, streams, tokio::spawn
35. Unsafe Rust
Raw pointers, unsafe functions, FFI
36. Macros
Declarative macros, macro_rules!, hygiene
37. Procedural Macros
Derive, attribute, function-like macros
38. FFI
extern C, bindgen, cbindgen, wasm
39. Testing
#[test], doc tests, integration, proptest
40. Benchmarking
criterion, #[bench], profiling
41. Cargo Advanced
Features, workspace, profiles, build scripts
42. CLI Tools
clap, structopt, colored output
43. Web APIs
actix-web, axum, warp frameworks
44. Database
sqlx, diesel, sea-orm
45. WebAssembly
wasm-pack, web-sys, wasm-bindgen
46. Project: CLI
Build a CLI tool with clap
47. Project: Web Server
Build an HTTP server with axum
48. Project: Data Processor
Build a concurrent data processor
49. Project: WASM App
Build a WASM app
50. Rust Ecosystem
Embedded, WASM, game dev, CLI ecosystem
Published Topics
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
All 57 topics in Rust Tutorials are published.