-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Remove in-tree flate/getopts crates #42664
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
We can also remove miniz.c from the COPYRIGHT file, I think. |
Travis failed:
|
0ac4b5e
to
840c430
Compare
Should be updated now |
840c430
to
78f2602
Compare
78f2602
to
c55b1c5
Compare
☔ The latest upstream changes (presumably #42410) made this pull request unmergeable. Please resolve the merge conflicts. |
c55b1c5
to
9881c23
Compare
Rebased |
@bors r+ |
📌 Commit 9881c23 has been approved by |
⌛ Testing commit 9881c23 with merge 21bb1c7... |
💔 Test failed - status-travis |
I think we might be trying to put one of these crates into the rust-src component.
|
9881c23
to
f53f838
Compare
@bors: r=eddyb |
📌 Commit f53f838 has been approved by |
⌛ Testing commit f53f8387ae21bd786194927d1ba9ace1e14855e9 with merge 864ee9a733032b38db6755cb511b7733556b88fd... |
💔 Test failed - status-appveyor |
☔ The latest upstream changes (presumably #42676) made this pull request unmergeable. Please resolve the merge conflicts. |
f53f838
to
5488132
Compare
📌 Commit 2218774 has been approved by |
⌛ Testing commit 22187747ac777ec7e6554bc0a421560bc5e22495 with merge 67aeea3f6f38497f18bcb11e08166f82a5f7b778... |
💔 Test failed - status-appveyor |
|
This commit deletes the in-tree `getopts` crate in favor of the crates.io-based `getopts` crate. The main difference here is with a new builder-style API, but otherwise everything else remains relatively standard.
2218774
to
5c3d0e6
Compare
@bors: r=eddyb |
📌 Commit 5c3d0e6 has been approved by |
Remove in-tree flate/getopts crates Remove `src/libflate` in favor of `flate2` on crates.io and `src/libgetopts` in favor of `getopts` on crates.io. The replacements have slightly different APIs and the usage in the compiler has been updated to reflect this. This uncovered an unfortunate limitation of the compiler today to deal with linking everything correctly, and the workaround can be found documented in `src/librustc/Cargo.toml`.
☀️ Test successful - status-appveyor, status-travis |
A bit late here, maybe I should have made an issue. Is using the "Default" compression level intended? the flate functions were changed to use a faster compression level some time ago (see #37298), going back to a higher compression setting may cause some performance regressions. Also, the old functions didn't use a zlib wrapper from what I can see, but the new code seems to. Don't know if this could cause some issues when trying to use libs from different versions, though at least it adds 6 bytes of overhead due to the header and checksum. |
I'd file a new issue with those concerns (they seem good to address to me) since merged/closed PRs are low-visibility locations. |
This was attempted but left incomplete in PR rust-lang#42664, where only the toml file was removed.
…lexcrichton Remove getopts leftover from tree This was attempted but left incomplete in PR rust-lang#42664, where only the toml file was removed. cc @alexcrichton
…lexcrichton Remove getopts leftover from tree This was attempted but left incomplete in PR rust-lang#42664, where only the toml file was removed. cc @alexcrichton
…lexcrichton Remove getopts leftover from tree This was attempted but left incomplete in PR rust-lang#42664, where only the toml file was removed. cc @alexcrichton
Remove
src/libflate
in favor offlate2
on crates.io andsrc/libgetopts
in favor ofgetopts
on crates.io. The replacements have slightly different APIs and the usage in the compiler has been updated to reflect this.This uncovered an unfortunate limitation of the compiler today to deal with linking everything correctly, and the workaround can be found documented in
src/librustc/Cargo.toml
.