README: Add option --locked to cargo install elf2uf2-rs

Without the --locked option, cargo currently tries to compile it using
clap v3.0.0-beta.5, which fails:

```
[...]
   Compiling clap v3.0.0-beta.5
   Compiling elf2uf2-rs v1.3.5
error[E0432]: unresolved import `clap::Clap`
 -->
/home/jan/.cargo/registry/src/github.com-1ecc6299db9ec823/elf2uf2-rs-1.3.5/src/main.rs:3:5
  |
3 | use clap::Clap;
  |     ^^^^^^^^^^ no `Clap` in the root
[...]
```

With --locked, it uses clap v3.0.0-beta.4, which works.
This commit is contained in:
Jan Niehusmann 2021-10-18 21:37:00 +00:00 committed by 9names
parent 6330dab44e
commit 233f7c9475

View file

@ -71,7 +71,7 @@ You may also want to install these helpful tools:
```sh ```sh
# Useful to creating UF2 images for the RP2040 USB Bootloader # Useful to creating UF2 images for the RP2040 USB Bootloader
cargo install elf2uf2-rs cargo install elf2uf2-rs --locked
# Useful for flashing over the SWD pins using a supported JTAG probe # Useful for flashing over the SWD pins using a supported JTAG probe
cargo install --git https://github.com/rp-rs/probe-run.git --branch rp2040-support cargo install --git https://github.com/rp-rs/probe-run.git --branch rp2040-support
``` ```