Cargo Features
[dependencies]
zlib-rs = { version = "0.3.1", default-features = false, features = ["std", "c-allocator", "rust-allocator", "ZLIB_DEBUG", "libz-sys", "arbitrary"] }
- default = c-allocator, std
-
These default features are set whenever
zlib-rs
is added without
somewhere in the dependency tree.default-features = false - std default = rust-allocator
- c-allocator default
-
expose a malloc-based C allocator
- rust-allocator std
-
expose a rust global alloctor
- ZLIB_DEBUG
- __internal-test = quickcheck
-
Affects
inflate::INFLATE_STATE_SIZE
,inflate::set_mode_dict
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- libz-sys implicit feature
-
Enables libz-sys
libz-sys:
Low-level bindings to the system libz library (also known as zlib)
- quickcheck __internal-test?
- arbitrary implicit feature
-
Enables arbitrary
arbitrary:
The trait for generating structured data from unstructured data