Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ability to specify the output name for a bin target different from the crate name #1706
As far as I know, the only way to name the output of a bin target is through the
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.
Rustc with the
If there is already a way to do this with cargo, it should be better documented, as I couldn't find it.
referenced this issue
Feb 8, 2017
This should in theory be a pretty easy issue to knock out if anyone's interested in implementing it! I'll try to leave some instructions here and if anyone has any questions please feel free to just let me know!
I think a basic design for this will probably look like a new key in the
[[bin]] name = "some-valid-crate-name" filestem = "invalid.crate.name but valid-ish file $name"
Some things to note for the implementation here:
I need this feature for a