Closed
Description
As far as I know, the only way to name the output of a bin target is through the name
attribute of a bin
section.
This, however, sets both the crate name and the output name.
It seems too restricting that the output name of an executable should be a valid crate name.
For example, it cannot contain spaces. Cargo also warns if it's uppercase, because crate names are lowercase by convention.
Rustc with the -o FILENAME
option allows to set any arbitrary filename for the output.
If there is already a way to do this with cargo, it should be better documented, as I couldn't find it.
Activity