| 1 |
[package] |
| 2 |
name = "libbz2-rs-sys" |
| 3 |
readme = "../README.md" |
| 4 |
description.workspace = true |
| 5 |
version.workspace = true |
| 6 |
edition.workspace = true |
| 7 |
license.workspace = true |
| 8 |
repository.workspace = true |
| 9 |
homepage.workspace = true |
| 10 |
publish.workspace = true |
| 11 |
rust-version.workspace = true |
| 12 |
|
| 13 |
[features] |
| 14 |
default = ["std", "stdio"] |
| 15 |
c-allocator = ["dep:libc"] # use a malloc-based C allocator (rust is picked over c if both are configured) |
| 16 |
rust-allocator = [] # use the rust global allocator (rust is picked over c if both are configured) |
| 17 |
std = ["rust-allocator"] |
| 18 |
export-symbols = [] |
| 19 |
custom-prefix = ["export-symbols"] # use the LIBBZ2_RS_SYS_PREFIX to prefix all exported symbols |
| 20 |
testing-prefix = ["export-symbols"] # prefix all symbols with LIBBZ2_RS_SYS_TEST_ for testing |
| 21 |
semver-prefix = ["export-symbols"] # prefix all symbols in a semver-compatible way |
| 22 |
stdio = ["dep:libc"] # corresponds to BZ_NO_STDIO; only the low-level api is available when this flag is disabled |
| 23 |
__internal-fuzz-disable-checksum = [] |
| 24 |
|
| 25 |
[dependencies] |
| 26 |
libc = { version = "0.2", optional = true } |