Cargo Features

[dependencies]
libbz2-rs-sys = { version = "0.2.0", default-features = false, features = ["c-allocator", "rust-allocator", "std", "export-symbols", "custom-prefix", "testing-prefix", "semver-prefix", "stdio"] }
default = std, stdio

These default features are set whenever libbz2-rs-sys is added without default-features = false somewhere in the dependency tree.

c-allocator

use a malloc-based C allocator (rust is picked over c if both are configured)

Enables libc

rust-allocator std

use the rust global allocator (rust is picked over c if both are configured)

std default = rust-allocator
export-symbols custom-prefix? semver-prefix? testing-prefix?
custom-prefix = export-symbols

use the LIBBZ2_RS_SYS_PREFIX to prefix all exported symbols

testing-prefix = export-symbols

prefix all symbols with LIBBZ2_RS_SYS_TEST_ for testing

semver-prefix = export-symbols

prefix all symbols in a semver-compatible way

stdio default

corresponds to BZ_NO_STDIO; only the low-level api is available when this flag is disabled

Enables libc

Affects bzlib::BZ2_bzlibVersion