Build against system-provided zlib library. --- a/duckscript_sdk/Cargo.toml +++ b/duckscript_sdk/Cargo.toml @@ -24,7 +24,7 @@ [dependencies] attohttpc = { version = "^0.25", default-features = false, features = [ - "compress", + "compress-zlib", ] } base64 = "^0.21" cfg-if = "^1" @@ -47,7 +47,7 @@ walkdir = "^2" which = { version = "^4", default-features = false } whoami = "^1" -zip = { version = "^0.6", default-features = false, features = ["bzip2", "deflate", "time"] } +zip = { version = "^0.6", default-features = false, features = ["bzip2", "deflate-zlib", "time"] } [target.'cfg(not(windows))'.dependencies] uname = "^0.1" --- a/Cargo.lock +++ b/Cargo.lock @@ -457,6 +457,7 @@ checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" dependencies = [ "crc32fast", + "libz-sys", "miniz_oxide", ] @@ -727,6 +728,17 @@ version = "0.2.142" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317" + +[[package]] +name = "libz-sys" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56ee889ecc9568871456d42f603d6a0ce59ff328d291063a45cbdf0036baf6db" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] [[package]] name = "link-cplusplus"