Closed
Description
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