Cargo Features
[dependencies]
libz-rs-sys = { version = "0.4.0", default-features = false, features = ["c-allocator", "rust-allocator", "std", "custom-prefix", "testing-prefix"] }
- default = rust-allocator, std
-
when used as a rust crate, use the rust allocator
- c-allocator
-
by default, use malloc/free for memory allocation
Enables c-allocator of zlib-rs
- rust-allocator default
-
by default, use the rust global alloctor for memory allocation
Enables rust-allocator of zlib-rs
- std default
-
assume
::std
is available - custom-prefix
-
use the LIBZ_RS_SYS_PREFIX to prefix all exported symbols
- testing-prefix
-
prefix all symbols with LIBZ_RS_SYS_TEST_ for testing