Auto rename binary target according to triple

Hi all,

Is it possible, using Cargo.toml, to set the name of the resulting binary with the target triple suffix.

Examples:

foo-x86_64-unknown-linux-gnu
foo-x86_64-unknown-linux-musl
foo-x86_64-pc-windows-msvc.exe
...

Thanks for your help.

I don't believe there is such an option. You can't configure Cargo targets to be platform specific like you can with dependencies. You could trivially rename the created artifacts from your command line though.

@jofas Thanks for your answer.