• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.github/workflows/23-Nov-2023-11388

ci/23-Nov-2023-7050

src/23-Nov-2023-120,10188,634

.cargo_vcs_info.jsonD23-Nov-202374 65

.gitignoreD23-Nov-202318 32

.gitmodulesD23-Nov-2023166 76

Android.bpD23-Nov-20232.7 KiB10294

Cargo.tomlD23-Nov-20231.4 KiB4641

Cargo.toml.origD23-Nov-20232.3 KiB6357

LICENSED23-Nov-202310.6 KiB202169

LICENSE-APACHED23-Nov-202310.6 KiB202169

LICENSE-MITD23-Nov-20231.1 KiB2723

METADATAD23-Nov-2023408 2019

MODULE_LICENSE_APACHE2D23-Nov-20230

OWNERSD23-Nov-202340 21

README.androidD23-Nov-2023250 64

README.mdD23-Nov-20232.1 KiB5840

TEST_MAPPINGD23-Nov-2023139 98

build.rsD23-Nov-20236.5 KiB216166

README.android

1This package is imported to Android and uses Android's external/zlib
2header files and compilation flags to generate bindings.
3
4If features are changed for the libz-sys crate, please ensure those
5features are changed in the libz_bindgen_build module.
6

README.md

1# libz-sys
2
3A common library for linking `libz` to rust programs (also known as zlib).
4
5[Documentation](https://docs.rs/libz-sys)
6
7# High-level API
8
9This crate provides bindings to the raw low-level C API. For a higher-level
10safe API to work with DEFLATE, zlib, or gzip streams, see
11[`flate2`](https://docs.rs/flate2). `flate2` also supports alternative
12implementations, including slower but pure Rust implementations.
13
14# zlib-ng
15
16This crate supports building either the high-performance zlib-ng (in
17zlib-compat mode), or the widely available stock zlib.
18
19By default, `libz-sys` uses stock zlib, primarily because doing so allows the
20use of a shared system zlib library if available.
21
22Any application or library designed for zlib should work with zlib-ng in
23zlib-compat mode, as long as it doesn't make assumptions about the exact size
24or output of the deflated data (e.g. "compressing this data produces exactly
25this many bytes"), and as long as you don't also dynamically pull in a copy of
26stock zlib (which will produce conflicting symbols). Nonetheless, for maximum
27compatibility, every library crate in a build must opt into allowing zlib-ng;
28if any library crate in your dependency graph wants stock zlib, `libz-sys` will
29use stock zlib.
30
31Library crates depending on `libz-sys` should use:
32```
33libz-sys = { version = "1.1.0", default-features = false, features = ["libc"] }
34```
35(Omit the `libc` feature if you don't require the corresponding functions.)
36
37This allows higher-level crates depending on your library to opt into zlib-ng
38if desired.
39
40Building zlib-ng requires `cmake`.
41
42# License
43
44This project is licensed under either of
45
46 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
47   http://www.apache.org/licenses/LICENSE-2.0)
48 * MIT license ([LICENSE-MIT](LICENSE-MIT) or
49   http://opensource.org/licenses/MIT)
50
51at your option.
52
53### Contribution
54
55Unless you explicitly state otherwise, any contribution intentionally submitted
56for inclusion in `libz-sys` by you, as defined in the Apache-2.0 license, shall be
57dual licensed as above, without any additional terms or conditions.
58