Cargo Features
[dependencies]
libbz2-rs-sys = { version = "0.1.1", default-features = false, features = ["c-allocator", "rust-allocator", "std", "custom-prefix", "testing-prefix", "stdio"] }
- default = std, stdio
-
These default features are set whenever
libbz2-rs-sys
is added without
somewhere in the dependency tree.default-features = false - 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
- custom-prefix
-
use the LIBBZ2_RS_SYS_PREFIX to prefix all exported symbols
- testing-prefix
-
prefix all symbols with LIBBZ2_RS_SYS_TEST_ for testing
- 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
…