The Embedded Rust Book
FreeAn introductory book about using the Rust Programming Language on "Bare Metal" embedded systems, such as Microcontrollers.
About The Embedded Rust Book
The Embedded Rust Book is an introductory guide to using the Rust programming language on bare-metal embedded systems, such as microcontrollers. It targets developers who are comfortable with Rust and have some embedded experience (e.g., with C/C++). The book covers how to set up an embedded development environment, shares current best practices for writing correct embedded software using Rust's safety features, and serves as a cookbook for common tasks like mixing C and Rust in a single project. All examples use the ARM Cortex-M architecture (specifically the STM32F3DISCOVERY board) but explain architecture-specific details where needed. The book is part of the Rust Embedded ecosystem and is available for free online under an open-source license.
Key Features
Pros & Cons
- Comprehensive for those with basic Rust and embedded knowledge
- Focuses on safety and best practices
- Practical cookbook examples
- Free and open-source
- Available in multiple languages (Japanese, Chinese)
- Assumes prior familiarity with Rust and embedded concepts; not for absolute beginners
- Examples are specific to ARM Cortex-M (though architecture details are explained)
- Not a full reference for all microcontrollers or architectures