workspace.default-members causes cargo run --bin from-other-crate to fail with an unhelpful error #14544
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
C-bug
Category: bug
Command-run
S-needs-mentor
Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Problem
In a workspace with
default-members
set,cargo run --bin
considers only these members as expected. However, when specifying another workspace binary without-p
, the error message is unhelpful, because it doesn't hint which package needs to be selected.Steps
cargo run --bin other
where the binary is in the workspace, but not in the default workspace member.Possible Solution(s)
The error message could search other crates in the workspace and list which have a binary with the given name.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: