# Rust toolchain for the PM track-format crate (Stage 1 of the Rust port).
# Host-tested codec for now; the RP2350 firmware target is added for later stages.
FROM docker.io/library/rust:1-slim

# Firmware targets: Cortex-M33 (thumbv8m) for the RP2350 (pm-kit), Cortex-M0+ (thumbv6m) for the
# plain RP2040 (pm-grid / Pico Scroll Pack). Harmless for the host tests.
RUN rustup target add thumbv8m.main-none-eabihf thumbv6m-none-eabi \
 && rustup component add llvm-tools-preview \
 && cargo install flip-link    # stack-overflow-safe linker (overflow faults instead of corrupting statics)

WORKDIR /work/rust
