Lines Matching +full:zlib +full:- +full:level
1 # libz-sys
3 A common library for linking `libz` to rust programs (also known as zlib).
5 [Documentation](https://docs.rs/libz-sys)
7 This also serves as the source for the `libz-ng-sys` crate, which builds
8 zlib-ng natively (not in zlib-compat mode). See
9 [`README-zng.md`](README-zng.md) for details.
11 # High-level API
13 This crate provides bindings to the raw low-level C API. For a higher-level
14 safe API to work with DEFLATE, zlib, or gzip streams, see
18 # zlib-ng
20 This crate supports building either the high-performance zlib-ng (in
21 zlib-compat mode), or the widely available stock zlib.
23 By default, `libz-sys` uses stock zlib, primarily because doing so allows the
24 use of a shared system zlib library if available.
26 Any application or library designed for zlib should work with zlib-ng in
27 zlib-compat mode, as long as it doesn't make assumptions about the exact size
30 stock zlib (which will produce conflicting symbols). Nonetheless, for maximum
31 compatibility, every library crate in a build must opt into allowing zlib-ng;
32 if any library crate in your dependency graph wants stock zlib, `libz-sys` will
33 use stock zlib.
35 Library crates depending on `libz-sys` should use:
37 libz-sys = { version = "1.1.0", default-features = false, features = ["libc"] }
41 This allows higher-level crates depending on your library to opt into zlib-ng
44 Building zlib-ng requires `cmake`.
50 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
51 http://www.apache.org/licenses/LICENSE-2.0)
52 * MIT license ([LICENSE-MIT](LICENSE-MIT) or
60 for inclusion in `libz-sys` by you, as defined in the Apache-2.0 license, shall be