Cargo runner insert file name in the middle

I want to run my cross-compiled rust program using avrdude. Therefore I created .cargo/config.toml
My problem is: avrdude does not take the file name as its last argument, but sandwiched between other specifiers:
avrdude -U flash:w:target/avr-atmega328p/debug/test.elf:i
Is there a way to insert the file name in the middle?

i'm afraid you'll have to write a wrapper program or script which in turn invokes the real runner with correct command line.

1 Like