Only enable feature "thin" of dep zstd

Disable "bindgen" that creates a bindgen at build time, which takes
quite some time and pulls in dep "bindgen" at bulid time.

Also disable feature "zstdmt" as we don't need multithreading here.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-20 18:18:39 +10:00
parent 1e81babea8
commit f59d081733
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 6 additions and 169 deletions

View file

@ -63,9 +63,8 @@ zip = { version = "0.6.2", default-features = false, features = ["deflate", "bzi
# Since zip 0.6.2 depends on zstd 0.10.0, we also have to use 0.10.0 here,
# otherwise there will be a link conflict.
#
# Enable feature bindgen to generate C bindings.
# Enable feature zstdmt to enable multithreading in libzstd.
zstd = { version = "0.10.0", features = ["bindgen", "zstdmt"], default-features = false }
# Enable feature thin to optimize zstd by size.
zstd = { version = "0.10.0", features = ["thin"], default-features = false }
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
guess_host_triple = "0.1.3"