Cargo Features

[dependencies]
libz-rs-sys-cdylib = { version = "0.6.0", default-features = false, features = ["c-allocator", "rust-allocator", "custom-prefix", "semver-prefix", "std", "capi", "gz", "gzprintf"] }
default = c-allocator, std

when used as a cdylib crate, use the c allocator but use std for feature detection

c-allocator default

by default, use malloc/free for memory allocation

Enables c-allocator of libz-rs-sys

rust-allocator = std

by default, use the rust global alloctor for memory allocation

Enables rust-allocator of libz-rs-sys

custom-prefix

use the LIBZ_RS_SYS_PREFIX to prefix all exported symbols

Enables custom-prefix of libz-rs-sys

semver-prefix

prefix all symbols in a semver-compatible way

Enables semver-prefix of libz-rs-sys

std default rust-allocator?

enables runtime feature detection (e.g. to use SIMD)

Enables std of libz-rs-sys

capi
gz

Enables gz of libz-rs-sys

libz-rs-sys:

publicly export the gz* functions

gzprintf

Enables gzprintf of libz-rs-sys

libz-rs-sys:

experimental, requires nightly for the c_variadic feature