Closed
Description
Problem
When running cargo new
in a workspace a warning is printed, but you have to manually add the new crate to the members = []
section.
Proposed Solution
Add a new --workspace
/ -w
flag to cargo new
that automatically adds the new crate with the correct path to members
.
Print a hint about the flag when cargo new
is run in a workspace.
This is admittedly a small quality of life feature, but I do it often enough that it becomes annoying.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ehuss commentedon May 15, 2022
Thanks for the report. This is a known issue, closing as a duplicate of #8365.
theduke commentedon May 15, 2022
@ehuss these are two different requests.
The other issue is about creating an empty workspace.
This issue is about automatically modifying the members declaration in a workspace when running 'new' inside a workspace.
ehuss commentedon May 15, 2022
Sorry, I should have linked to #6378.
felipetesc commentedon Oct 5, 2022
Any news about this proposal ? What's the current situation ? Thanks.