Zmh's blog

Rust Learning Roadmap

created: 2026-03-08T22:45:00+08:00updated: 2026-03-08T22:45:00+08:00topic: programming/ruststatus: evergreen#rust#roadmap#ownership#async

Rust Learning Roadmap

Stage 1: Foundations

  1. Install and update with rustup.
  2. Finish Rust Book core chapters: ch02, ch04, ch08, ch09, ch10, ch11.
  3. Parallel practice with Rust by Example.

Stage 2: Engineering Core

  1. Cargo workflow: new, check, build, test, doc.
  2. Error modeling with Result, thiserror-style patterns.
  3. Module architecture and workspace split.

Stage 3: Advanced Capabilities

  1. Concurrency (std::thread, channels, sync primitives).
  2. Async (async/await, runtime model, task cancellation).
  3. Unsafe and low-level memory model when necessary.

Stage 4: Production Habits

  1. Lint and format by default (cargo clippy, cargo fmt).
  2. Structured logs and tracing in services.
  3. CI baseline: check + test + clippy + fmt.

Common Pitfalls

  • Borrow checker conflicts caused by over-shared mutable state.
  • Lifetime errors from returning references with invalid scope.
  • Excessive unwrap in non-toy code.
  • Async tasks calling blocking operations.

References

On this page