Closed
Description
Problem
When using bit-set = "0.2.0"
as a dependency, it now fails with:
error: failed to download `bit-set v0.2.0`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `.cargo/registry/src/github.com-1ecc6299db9ec823/bit-set-0.2.0/Cargo.toml`
Caused by:
dependency (bit-vec) specified without providing a local path, Git repository, or version to use.
Steps
cargo new abc; cd abc; echo 'bit-set = "0.2.0"' >> Cargo.toml; cargo c
Possible Solution(s)
This seems to be caused by #9686
The Cargo.toml
contains an empty [dependencies.bit-vec]
block: https://docs.rs/crate/bit-set/0.2.0/source/Cargo.toml
The solution might very well be 'won't fix'. But users of that crate wouldn't have seen any warning about it before. (E.g. users of libusb
that uses it indirectly, since the latest version still uses bit-set 0.2.0
.)
Notes
It works fine on:
- cargo 1.55.0-nightly (3ebb5f1 2021-07-02)
It fails on:
- 1.55.0-nightly (66a6737 2021-07-14)