-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cargo new --workspace
to create a workspace
#8365
Comments
Just wanted to chime in and say that we have been looking to implement this with pksunkara/cargo-workspaces#15. Once that PR is merged, you should be able to do |
Should this also be closed as postponed per #8411 ? |
@buzmeg why is there another issue that ask about this feature ? |
Same confusion here. In Javascript community, tools like lerna, yarn workspace and nx both have command to create workspace project. Cargo workspace includes many feature, I think it will save a lot of beginners' time if we have command to create workspace project like |
Are there any plans to implement this feature? Looks like the |
Any update with this? I would love this feature also. |
cargo new --workspace
cargo new --workspace
to create a workspace
I've clarified the title and linked out to #6378 since I always get these mixed up. As for plans to move forward with this, someone would need to step up and work on a design for this which at least acknowledges the needs of #6378 so one doesn't block the other. My gut feeling is there are enough use cases with various needs that we'd be better served by research into #5151. |
I will admit to typing Ah well, off to handwrite a workspace |
Describe the problem you are trying to solve
One has to manually create a new directory and setup a
Cargo.toml
, rather than being able to simply runcargo new foo --workspace
and have a basic template set-up.Describe the solution you'd like
Add the option
--workspace
tocargo new
that creates a new workspace with the provided name.Notes
The feature is not too important, but it seems like it would streamline the process of creating a new workspace a bit.
For general template support, see #5151
For adding workspace members to a workspace, see #6378
The text was updated successfully, but these errors were encountered: