Skip to content

Support underline and shortline compatible for cargo-remove #14814

Closed
@A4-Tacks

Description

@A4-Tacks

Problem

Reproduction:

lrne@Acer-Lrne[/path/to/]
    $ cargo new foo && cd foo
    Creating binary (application) `foo` package
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
lrne@Acer-Lrne[/path/to/foo/]
    $ cargo add cfg_if
    Updating `rsproxy-sparse` index
warning: translating `cfg_if` to `cfg-if`
      Adding cfg-if v1.0.0 to dependencies
             Features:
             - compiler_builtins
             - core
             - rustc-dep-of-std
    Updating `rsproxy-sparse` index
     Locking 2 packages to latest compatible versions
lrne@Acer-Lrne[/path/to/foo/]
    $ cargo remove cfg_if
    Removing cfg_if from dependencies
error: the dependency `cfg_if` could not be found in `dependencies`
lrne@Acer-Lrne[/path/to/foo/]
    $ cargo remove cfg-if
    Removing cfg-if from dependencies
lrne@Acer-Lrne[/path/to/foo/]
    $ 

Proposed Solution

No response

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-needs-team-inputStatus: Needs input from team on whether/how to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions