Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upworkspace cargo build --bin [target] error #5819
Comments
alexcrichton
added
the
A-workspaces
label
Jul 29, 2018
This comment has been minimized.
This comment has been minimized.
|
Definitely sounds like a bug! |
This comment has been minimized.
This comment has been minimized.
|
Is it expected that without |
This comment has been minimized.
This comment has been minimized.
|
@ehuss I deduced the expectation from the cargo help page about build. In my opinion clashes don't matter because there is no first-and-only expectation of the effect, contrary to the run subcommand. Going forward i believe the following options are available.
|
This comment has been minimized.
This comment has been minimized.
|
@ehuss it's true yeah there can be conflicts, I'd imagine though we could do something like run the bin |
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton if you want to assign this to me, I'll take a look at it soon. EDIT: or maybe github doesn't allow that |
This comment has been minimized.
This comment has been minimized.
|
Sure thing, thanks @ehuss! |
This comment has been minimized.
This comment has been minimized.
|
You should be assignable now you're on the team! |
Bert-Proesmans commentedJul 28, 2018
•
edited
Building a specific bin target with cargo from a workspace root does not work.
I tried this:
I expected to see this happen: The binary target gets built.
Because the test-subcommand works as expected..
Instead, this happened: error message
-> error: no bin target named
[target]I'm using cargo 1.27.0 (1e95190 2018-05-27) - Stable toolchain
Note:
cargo build --binsDOES work and compiles all binaries, effectively that one target binary.changing work-directory into sub crate with bin and running
cargo build --bin [target]DOES work and compiles the selected binary.