-
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
Is flate2's rust_backend feature really used? #8019
Comments
I believe the answer is "no". Removing it saves about 0.1 seconds on my system, so I'm not sure it really matters, but if you want to send a PR to disable default features, it should probably be OK. |
Can you label it easy and help wanted? Thanks! |
Done. I'll create a PR to rust repository to remove these 2 dependencies from their whitelist once 8023 is merged. |
@aleksator thanks! Don't forget to also update the cargo submodule |
That won't be necessary. |
Good point. The comment still needs updating because it's not just an unused dep of cargo but used inside the compiler, too. |
Certainly true in regards to this constant in deps.rs then:
But what about
? This one is internal for rustc if I understand it correctly, so probably should be changed. Is it?
What would you change it to? |
…xcrichton Remove unused transitive dependencies: miniz_oxide, adler32 Fixes #8019
The flate2 dependency is included by cargo in the following way:
cargo/Cargo.toml
Line 34 in 03d7154
This includes the on-by-default
rust_backend
feature, which adds theminiz_oxide
dependency to flate2 and theadler32
transitive dependency. In the rustc repo you can find the following note though, saying that adler32 is not used:rust-lang/rust@61fe2e4#diff-3ac60df36be32d72842bf5351fc2bb1dR43
It might be better to turn off the default features of flate2 so that the unused crate doesn't have to be compiled by people.
The text was updated successfully, but these errors were encountered: