Skip to content
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

Provide cargo init --workspace #11233

Closed
BartMassey opened this issue Oct 13, 2022 · 2 comments
Closed

Provide cargo init --workspace #11233

BartMassey opened this issue Oct 13, 2022 · 2 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@BartMassey
Copy link
Contributor

Problem

Right now, it is very slightly inconvenient to set up a new Rust project with a workspace rather than as a standalone lib or bin.

Proposed Solution

In addition to cargo init --bin and cargo init --lib, it would be great to have cargo init --workspace, which just sets up Cargo.toml as a workspace with no members. Not a big deal, but perhaps also really easy?

Notes

No response

@BartMassey BartMassey added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Oct 13, 2022
@epage
Copy link
Contributor

epage commented Oct 13, 2022

I think this might be a duplicate of #8365 if we keep parity between init and new.

Other related workspace issues

@BartMassey
Copy link
Contributor Author

Agreed. Apologies for the issue spam: I did do a search, honest, but somehow managed to miss the relevant issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants