-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
cargo add reformats the features lists #11743
Copy link
Copy link
Closed
Labels
A-tomlArea: TOML parsing and handlingArea: TOML parsing and handlingC-bugCategory: bugCategory: bugCommand-addCommand-removeS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Metadata
Metadata
Assignees
Labels
A-tomlArea: TOML parsing and handlingArea: TOML parsing and handlingC-bugCategory: bugCategory: bugCommand-addCommand-removeS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
cargo adddoes not preserve formatting of TOML lists unrelated to the[dependencies]tableSteps
With the following
Cargo.toml:Run:
observe that the
[features]table is reformatted:Possible Solution(s)
Preserve formatting of all TOML contents outside of the newly added dependency.
Notes
No response
Version