# 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

# Cortex-M33 target for the eventual RP2350 firmware. Harmless for the host tests.
RUN rustup target add thumbv8m.main-none-eabihf \
 && rustup component add llvm-tools-preview \
 && cargo install flip-link    # stack-overflow-safe linker (overflow faults instead of corrupting statics)

WORKDIR /work/rust
