Skip to content

Add cargo new --workspace to create a workspace #8365

@camelid

Description

@camelid

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 run cargo new foo --workspace and have a basic template set-up.

Describe the solution you'd like

Add the option --workspace to cargo 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-workspacesArea: workspacesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-newS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions