-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bit-set 0.2.0's Cargo.toml no longer accepted #9885
Comments
Is there a sense for whether this is a super-prevelant error or not? This was known to probably break something, but the warning that "this will break in the future" was there for ~6 years so we figured nothing critical or big relied on it any more. |
That warning wasn't visible when depending on a crate with that problem, only when working on the crate itself. But yeah, six years is a long time. For me, my issue is already fixed by switching from |
I did a full scan of crates.io to find how common it was and came up with this list of root offenders:
I'm not sure how common any of these are as dependencies, but I think that list is small enough that this likely is "wontfix". |
Hm well it's definitely a bug that we didn't, at some point, turn the warnings on for deps-of-deps. That's something we should be vigilant for in the future! In any case I agree that leaving this here for a bit to see if others run into it is a good idea. If the impact is larger than expected we can always revert, implement a better warning, and then re-land the error in a year or so. |
(@ikravets Note that the |
This is a super frustrating regression that could come and bite anybody at any time and is a breaking change for existing versions of existing crates. As consumers of large dependency trees, please can we get a way to turn this error off? |
Same issue reappeared with bit-set v.0.2.0 dependency of libusb on nightly 1.80.0 (maybe even on 1.79, it was ok last time I checked 2 weeks ago) |
Being further discussed in #13824 |
Problem
When using
bit-set = "0.2.0"
as a dependency, it now fails with: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.tomlThe 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 usesbit-set 0.2.0
.)Notes
It works fine on:
It fails on:
The text was updated successfully, but these errors were encountered: