Skip to content

Commit e2a8e71

Browse files
committed
add a export-symbols feature flag
1 parent 052a6ac commit e2a8e71

File tree

3 files changed

+47
-46
lines changed

3 files changed

+47
-46
lines changed

libz-rs-sys-cdylib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ semver-prefix = ["libz-rs-sys/semver-prefix"] # prefix all symbols in a semver-c
2323
capi = []
2424

2525
[dependencies]
26-
libz-rs-sys = { version = "0.4.2", path = "../libz-rs-sys", default-features = false }
26+
libz-rs-sys = { version = "0.4.2", path = "../libz-rs-sys", default-features = false, features = ["export-symbols"] }
2727

2828
[package.metadata.capi.library]
2929
version = "1.3.0" # the zlib api version we match

libz-rs-sys/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ default = ["std", "rust-allocator"] # when used as a rust crate, use the rust al
1515
c-allocator = ["zlib-rs/c-allocator"] # by default, use malloc/free for memory allocation
1616
rust-allocator = ["zlib-rs/rust-allocator"] # by default, use the rust global alloctor for memory allocation
1717
std = ["zlib-rs/std"] # assume `::std` is available
18-
custom-prefix = [] # use the LIBZ_RS_SYS_PREFIX to prefix all exported symbols
19-
testing-prefix = [] # prefix all symbols with LIBZ_RS_SYS_TEST_ for testing
20-
semver-prefix = [] # prefix all symbols in a semver-compatible way
18+
export-symbols = [] # whether the zlib api symbols are publicly exported
19+
custom-prefix = ["export-symbols"] # use the LIBZ_RS_SYS_PREFIX to prefix all exported symbols
20+
testing-prefix = ["export-symbols"] # prefix all symbols with LIBZ_RS_SYS_TEST_ for testing
21+
semver-prefix = ["export-symbols"] # prefix all symbols in a semver-compatible way
2122

2223
[dependencies]
2324
zlib-rs = { workspace = true, default-features = false }

0 commit comments

Comments
 (0)