I am not able to install the crate corresponding to char_width
ie. wcwidth
. Seems like it has been taken down (according to crates.io) but is still available for download.
Asked
Active
Viewed 111 times
0

Arka Ray
- 19
- 6
-
According to crates.io, this crate is not very used. The most popular one seems to be [unicode-width](https://crates.io/crates/unicode-width). – rodrigo Dec 05 '19 at 10:58
-
Updating crates.io index error: specified package `unicode-width v0.1.6` has no binaries if you try to install it from the repo directly Updating git repository `https://github.com/unicode-rs/unicode-width.git` error: no packages found with binaries or examples, I suppose the reason is repo doesn't contain the binaries – Arka Ray Dec 05 '19 at 12:05
-
1Do you want to use it as a program or as a library? If the latter then please read https://stackoverflow.com/questions/37706999/error-installing-a-crate-via-cargo-specified-package-has-no-binaries – hellow Dec 05 '19 at 12:32
-
the above log is from cargo install – Arka Ray Dec 05 '19 at 12:49
1 Answers
0
Guessing your best bet is to add as a dependency the original repository.
Otherwise, looks like the current behavior for crates.io is to continue providing the crate for users who already have it in their Cargo.lock
file. However, cargo will refuse to add a yanked crate to the Cargo.lock
file. I'm guessing if you hand-edit a version on crates.io into your existing Cargo.lock
it'll download it for you and will at least attempt to build it.

romanows
- 458
- 4
- 12