Skip to content

RustTraining

Free, open-source Rust learning books for readers coming from other languages or at advanced levels.

Stars
15k
Forks
1.2k
Licence
MIT
Language
Rust
Last update
5 days ago
Type
Learning resource

What it is

A collection of seven Rust training books, from beginner bridge courses for people coming from C/C++, C#, or Python to deep dives on async Rust, advanced patterns, type-driven correctness, and engineering practices. Each book has 15–16 chapters with diagrams, editable code playgrounds, exercises, and search, and they are published as a website on GitHub Pages. The material is described as training content, not an official reference.

  • Read the bridge book matching your current language to learn Rust's ownership and type system
  • Work through the Async Rust book to learn Tokio, streams, and cancellation safety
  • Use the exercises and editable playgrounds to practice patterns such as type-state or Pin
  • Build and browse the books locally with mdbook for offline reading

Great for

  • Experienced C, C++, C#, or Python developers learning Rust
  • Developers who already know Rust basics and want async or advanced pattern material
  • Engineers looking for build, cross-compilation, and CI/CD guidance for Rust projects
  • People who prefer reading offline and can build the books locally

Not ideal for

  • Readers who want an authoritative language reference; the README says to check the official Rust docs and Rust Reference for critical details
  • People who need a complete course with guaranteed accuracy, since the README says it strives for accuracy but is not authoritative
  • Complete beginners with no programming background, since the bridge books assume experience in another language
Step-by-step guide: how to use RustTrainingInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Clone and build from source

    You'll need: Rust (install via rustup)

    Clone the repository

    git clone https://github.com/microsoft/RustTraining.git

    Enter the project folder

    cd RustTraining

    Install mdbook and mdbook-mermaid

    cargo install mdbook mdbook-mermaid

    Serve the books locally

    cargo xtask serve
  2. 2

    Run it

    • Install Rust with rustup if you have not already
    • Clone the repository and enter the folder
    • Run cargo xtask serve and open http://localhost:3000
    • Or browse the books online on the GitHub Pages site
  3. 3

    Get the most out of it

    • Pick the bridge book that matches your current language to start
    • Use the sidebar navigation and search on the GitHub Pages site
    • Run the editable Rust playgrounds and exercises in each chapter
    • Use cargo xtask build to produce an offline copy in site/

Downloads

Strengths

  • Covers seven distinct backgrounds and levels, with a clear learning path from bridge to expert
  • Includes interactive elements such as editable Rust playgrounds, exercises, and full-text search
  • Released under MIT for code and CC-BY-4.0 for docs, so it is free to reuse with attribution

Trade-offs

  • The README explicitly calls the material non-authoritative and says it should be verified against official docs
  • It is built from many inspirations and the README does not detail how each section was reviewed
  • Local builds require installing Rust and specific mdbook versions, which adds setup effort

How it compares

ProjectStarsTypeLevelUpdatedBest for
RustTraining (this)15kLearning resourcebeginner5 days agoExperienced C, C++, C#, or Python developers learning Rust
rustlings64.5kLearning resourcebeginner10 days agoPeople learning Rust for the first time

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.