-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workspace cargo build --bin [target] error #5819
Comments
Definitely sounds like a bug! |
Is it expected that without |
@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.
|
@ehuss it's true yeah there can be conflicts, I'd imagine though we could do something like run the bin |
@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 😦 |
Sure thing, thanks @ehuss! |
You should be assignable now you're on the team! 😁 |
Change target filters in workspaces. This changes it so that filters like `--bin`, `--test`, `--example`, `--bench`, `--lib` will work in a workspace. Today, these filters require that they match *every* package in a workspace which makes them not very useful. This change makes it so that they only must match at least one package. Closes #5819.
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 --bins
DOES 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.The text was updated successfully, but these errors were encountered: