Cargo Features

[dependencies]
libz-rs-sys-cdylib = { version = "0.4.0", default-features = false, features = ["c-allocator", "rust-allocator", "custom-prefix"] }
default = c-allocator

when used as a cdylib crate, use the c allocator

c-allocator default

by default, use malloc/free for memory allocation

Enables c-allocator of libz-rs-sys

rust-allocator

by default, use the rust global alloctor for memory allocation

Enables rust-allocator and std of libz-rs-sys

custom-prefix

use the LIBZ_RS_SYS_PREFIX to prefix all exported symbols

Enables custom-prefix of libz-rs-sys