projects/aports·blob master · refs

95 lines · 2.3 KiB

1Build against system-provided zlib library.
2
3--- a/duckscript_sdk/Cargo.toml
4+++ b/duckscript_sdk/Cargo.toml
5@@ -24,7 +24,7 @@
6
7 [dependencies]
8 attohttpc = { version = "^0.28", default-features = false, features = [
9- "compress",
10+ "compress-zlib",
11 ] }
12 base64 = "^0.22"
13 cfg-if = "^1"
14@@ -49,7 +49,7 @@
15 whoami = "^1"
16 zip = { version = "^2", default-features = false, features = [
17 "bzip2",
18- "deflate",
19+ "deflate-zlib",
20 "time",
21 ] }
22
23--- a/Cargo.lock
24+++ b/Cargo.lock
25@@ -380,6 +380,7 @@
26 checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0"
27 dependencies = [
28 "crc32fast",
29+ "libz-sys",
30 "miniz_oxide",
31 ]
32
33@@ -653,18 +654,23 @@
34 checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
35
36 [[package]]
37+name = "libz-sys"
38+version = "1.1.20"
39+source = "registry+https://github.com/rust-lang/crates.io-index"
40+checksum = "d2d16453e800a8cf6dd2fc3eb4bc99b786a9b90c663b8559a5b1a041bf89e472"
41+dependencies = [
42+ "cc",
43+ "pkg-config",
44+ "vcpkg",
45+]
46+
47+[[package]]
48 name = "linux-raw-sys"
49 version = "0.4.14"
50 source = "registry+https://github.com/rust-lang/crates.io-index"
51 checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
52
53 [[package]]
54-name = "lockfree-object-pool"
55-version = "0.1.6"
56-source = "registry+https://github.com/rust-lang/crates.io-index"
57-checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e"
58-
59-[[package]]
60 name = "log"
61 version = "0.4.22"
62 source = "registry+https://github.com/rust-lang/crates.io-index"
63@@ -1064,12 +1070,6 @@
64 checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
65
66 [[package]]
67-name = "simd-adler32"
68-version = "0.3.7"
69-source = "registry+https://github.com/rust-lang/crates.io-index"
70-checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
71-
72-[[package]]
73 name = "spin"
74 version = "0.9.8"
75 source = "registry+https://github.com/rust-lang/crates.io-index"
76@@ -1571,19 +1571,4 @@
77 "memchr",
78 "thiserror",
79 "time",
80- "zopfli",
81-]
82-
83-[[package]]
84-name = "zopfli"
85-version = "0.8.1"
86-source = "registry+https://github.com/rust-lang/crates.io-index"
87-checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946"
88-dependencies = [
89- "bumpalo",
90- "crc32fast",
91- "lockfree-object-pool",
92- "log",
93- "once_cell",
94- "simd-adler32",
95 ]