Builtin Package Registry
All packages ship with the toolchain. There is no external package manager.
core/*
No-alloc. Works on bare-metal. Always safe to use on MCU targets.
See core/* for full API details.
| Package | Purpose |
|---|---|
core/clone | Standard Clone trait for explicit duplication |
core/fmt | No-heap, writer-first formatting |
core/io | Reader and Writer traits |
core/sync | Atomics, OnceCell<T>, Lazy<T>, critical sections |
core/cmp | Ordering enum and compare() for custom sort APIs |
core/embed | Compile-time asset embedding |
std/*
Higher-level. May require heap. Cross-target where the concept applies.
See std/* for full API details.
| Package | Purpose |
|---|---|
std/time | Duration, Instant, sleep_ms, sleep_us |
std/fmt | Owned-string formatting |
std/sync | Channels, Mutex<T>, Semaphore |
std/text | Portable text views, text.Split, and text.Buffer[N] |
std/io | Buffered IO, file handles (host targets) |
std/fs | Filesystem APIs (host targets / SD card) |
micro/*
MCU peripheral APIs. See HAL and Micro Library for full API details.
| Package | Purpose |
|---|---|
micro/gpio | GPIO peripheral API |
micro/uart | UART peripheral API |
micro/adc | ADC peripheral API |
micro/pwm | PWM peripheral API |
micro/i2c | I2C bus API |
micro/spi | SPI bus API |
micro/pio | PIO state machine API |
micro/dma | DMA controller API |
board/*
Board-specific pin maps, defaults, and convenience constructors. Available packages depend on the selected board. See Targets and Boards.
| Package | Purpose |
|---|---|
board/pico | Raspberry Pi Pico (RP2040) |
board/pico2 | Raspberry Pi Pico 2 (RP2350) |