cargo-new: workspace
is added as an inline table
#13345
Labels
C-bug
Category: bug
Command-new
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
In #12779, cargo adds new packages to [workspace.members] automatically. This is great when
workspace.member
array alreay exists, but the format doesn't look good whenworkspace
array is missing.Steps
cargo new foo
&& cd foocargo add bar --lib
And you'll get the resulting TOML
Possible Solution(s)
Don't add the new package to
workspace.members
if there is no existingworkspace
in Cargo.toml.Notes
No response
Version
The text was updated successfully, but these errors were encountered: