Cargo Features

[dependencies]
libz-rs-sys = { version = "0.1.1", default-features = false, features = ["c-allocator", "rust-allocator", "std"] }
default = rust-allocator, std

when used as a rust crate, use the rust allocator

c-allocator

by default, use malloc/free for memory allocation

rust-allocator default

by default, use the rust global alloctor for memory allocation

std default

assume ::std is available