How to rename the target binary (usually in target/release) for a specific target. Compiling with both:
$ cargo build --release $ cargo build --release --target x86_64-unknown-linux-musl
gives the same executable name.
The target-dir in the [build] section is only for changing the path, not the name, and is I guess valid for all builds.
Thanks for your help.