Skip to content
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

*: use libz-sys instead of bundled one #420

Merged
merged 3 commits into from
Dec 25, 2019

Conversation

BusyJay
Copy link
Member

@BusyJay BusyJay commented Dec 20, 2019

Ref #419.

When using the built-in cmake to build zlib, it changes the source tree
as madler/zlib#162 describes. This leads to the failure during
[generating the docs][1]. So let's switch to libz-sys instead, which
uses its own custom script to build zlib, and leave source tree as it
is. Switching to libz-sys can also reduce the package size as we can
ignore more sub modules. It should improve compile time if libz-sys is
also a dependency of other crates.

The only shortcoming is that libz-sys may not be compatible with
grpcio, but I believe the chance is quite small given it's such a small
library. And giving it's such a small library, the benifits like compile
time or package size described above may be too small to be observed.

[1]: https://docs.rs/crate/grpcio/0.5.0-alpha.5/builds/196235.

Signed-off-by: Jay Lee <busyjaylee@gmail.com>
@BusyJay BusyJay added Build Compilation, environment BugFix PR fixes bugs labels Dec 20, 2019
Signed-off-by: Jay Lee <busyjaylee@gmail.com>
Signed-off-by: Jay Lee <busyjaylee@gmail.com>
@BusyJay BusyJay merged commit f6259f5 into tikv:master Dec 25, 2019
@BusyJay BusyJay deleted the use-libz-sys-master branch December 25, 2019 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugFix PR fixes bugs Build Compilation, environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants