Option to disable workspace edit feature of cargo new #13432
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-new
S-triage
Status: This issue is waiting on initial triage.
Problem
cargo new
will unconditionally add the new crate to a cargo workspace when there is a Cargo.toml in the parent directory, even when that Cargo.toml is not intended as cargo workspace. For example I might create a new crate just to quickly test something or the build system can't handle the parent Cargo.toml being a cargo workspace for whatever reason.Proposed Solution
Add an option to
cargo new
to stop it from adding the new crate to any cargo workspace. And maybe disable the auto adding when there isn't yet a cargo workspace.Notes
No response
The text was updated successfully, but these errors were encountered: