Guides Rust embedded and no_std development, covering constraints, frameworks, crates and hardware patterns.
- What it does
- This skill supplies domain guidance for writing embedded and no_std Rust, such as firmware for microcontrollers. It lays out constraints like no heap allocation, interrupt safety and peripheral ownership, and maps them to Rust patterns including heapless collections, critical sections and HAL singletons. It also compares frameworks (RTIC, Embassy, bare metal), lists key crates and shows a static peripheral code pattern with common mistakes. It produces advisory reference material rather than files or scripts.
- When to use it
- Use it when developing embedded or bare-metal Rust, including no_std firmware for MCUs such as ARM, RISC-V, STM32, ESP32 or nRF. It is relevant when working with HALs, PACs, interrupts, DMA or peripherals, or when choosing between RTIC, Embassy and bare-metal approaches.
- Requirements
- No scripts or tooling are required; it is instructions only. It assumes a Rust embedded project context, and its injected context reads .cargo/config.toml when present.