-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)Area: selection and definition of targets (lib, bins, examples, tests, benches)A-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesE-mediumExperience: MediumExperience: Medium
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.
tyleo, VelocityRa, iddm, alexbool, horrorho and 88 more
Metadata
Metadata
Assignees
Labels
A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)Area: selection and definition of targets (lib, bins, examples, tests, benches)A-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesE-mediumExperience: MediumExperience: Medium