This is a stripped-down version of the rp2040 project template
dnf install libusb-devel
dnf install arm-none-eabi-gcc-cs
dnf install arm-none-eabi-newlib
rustup target install thumbv6m-none-eabi
cargo install elf2uf2-rs
Reset the Pico while pressing the BOOTSEL button, then:
cargo run --release