You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
theduke
added
the
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
label
May 15, 2022
Problem
When running
cargo new
in a workspace a warning is printed, but you have to manually add the new crate to themembers = []
section.Proposed Solution
Add a new
--workspace
/-w
flag tocargo new
that automatically adds the new crate with the correct path tomembers
.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.
The text was updated successfully, but these errors were encountered: