cargo add
to add a folder as member to an existing workspace project
#14978
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
As I was reading thru #10608 I was missing one aspect: to use
cargo add
to extend an existing workspace project by a new member.Originally the feature was requested at cargo-generate (see cargo-generate/cargo-generate#1340)
But I wonder if that should be "base" functionality of
cargo add
or not?To summarize the assmptions:
cargo add
to put this named project as a member in the workspace project manifestProposed Solution
Not sure, if this is really wanted it could be
Notes
member_y
does not live within the folder tree of the current working directory (someone calles it likecargo add --member ../member_y
the command should just fail and suggests thatmember_y
should be moved into the current foldermember_y
is not a valid cargo project the command should also failThe text was updated successfully, but these errors were encountered: