Rust Secure & System Programming
🎯 Course Goals
- Làm chủ nguyên lý cốt lõi của Rust (ownership, borrowing, lifetimes).
- Thành thạo async/concurrency với Rust (Tokio/Futures).
- Biết cách dùng crate phổ biến (serde, reqwest, clap, tokio).
- Viết được tool CLI, network service, crawler thực tế.
- Hiểu và tránh pitfalls: data race, unsafe misuse, anti-patterns.
- Biết migrate code theo Rust edition & crates mới nhất.
👥 Audience
- Backend/system developers muốn tìm hiểu Rust từ nền tảng đến ứng dụng.
- DevOps/SRE cần công cụ CLI hiệu năng, an toàn.
- Security engineers quan tâm Rust trong context phòng thủ.
📖 Lessons
- Lesson 1 — Mastering Ownership & Borrowing
- Lesson 2 — Error Handling
- Lesson 3 — Working with Structs, Enums, and Pattern Matching
- Lesson 4 — Concurrency with Threads & Channels
- Lesson 5 — Asynchronous Programming with Tokio
- Lesson 6 — Traits, Generics, and Abstractions
- Lesson 7 — Building a CLI Tool with Clap
- Lesson 8 — Networking with Reqwest and Hyper
- Lesson 9 — Testing, Logging, and Debugging
- Lesson 10 — Cross-compilation & Binary Optimization
(các lesson tiếp theo sẽ bổ sung dần)
📂 Repository
rust-lessons/
├─ lesson01-ownership/
│ ├─ Cargo.toml
│ └─ src/
│ └─ main.rs
├─ lesson02-error-handling/
└─ ...
🧭 How to Study
- Đọc Q&A trước để nắm khái niệm.
- Chạy Example để thấy kết quả.
- Làm Exercises (từ dễ đến khó).
- Đọc Migration Notes để quen với việc update.
- Xem Glossary khi gặp thuật ngữ mới.