Cargo Features

[dependencies]
libz-rs-sys = { version = "0.5.0", default-features = false, features = ["c-allocator", "rust-allocator", "std", "export-symbols", "custom-prefix", "testing-prefix", "semver-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

Enables std of zlib-rs

export-symbols custom-prefix? semver-prefix? testing-prefix?

whether the zlib api symbols are publicly exported

custom-prefix = export-symbols

use the LIBZ_RS_SYS_PREFIX to prefix all exported symbols

testing-prefix = export-symbols

prefix all symbols with LIBZ_RS_SYS_TEST_ for testing

semver-prefix = export-symbols

prefix all symbols in a semver-compatible way