Print a note when cargo new
is editing workspace.members
#13403
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-workspaces
Area: workspaces
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-new
E-easy
Experience: Easy
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
Starting from #12779,
cargo new
automatically adds the new package toworkspace.members
when invoked inside from a directory of a workspace. This is a great feature, however sometimes a bit less noticeable.Proposed Solution
Print a notice when a workspace is found and cargo new are editing
workspace.members
of it. For example,Creating binary (application) `foo` package + note: adding `foo` as a workspace member of workspace `bar` at `/home/projects/bar` note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Notes
version
The text was updated successfully, but these errors were encountered: