FROM git.plabble.org/maurice/fedora:main

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN . '/home/user/.cargo/env' && rustup component add rust-analyzer

# Raspberry Pi Pico tools
RUN sudo dnf install -y \
    systemd-devel \
    pkg-config \
 && dnf clean all
RUN . "$HOME/.cargo/env" && cargo install elf2uf2-rs --locked
RUN . "$HOME/.cargo/env" && rustup target add thumbv6m-none-eabi
