Skip to content

Translate underscore to dash character for cargo remove #11511

@avdb13

Description

@avdb13

Problem

cargo remove was added in 1.66.0 but its semantics are different from cargo add due to it lacks the translation behavior. This can be a problem for writing scripts which might want to reverse adding a dependency that contains an underscore instead of a dash as a separator.

Proposed Solution

Translate _ to -.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-removeS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions