Switch back from binstall-zip to zip (#512)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-11-08 11:32:39 +11:00 committed by GitHub
parent 35a8bfdc6b
commit 565be9ae4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 20 deletions

30
Cargo.lock generated
View file

@ -110,7 +110,6 @@ version = "0.4.1"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"binstall-tar", "binstall-tar",
"binstall-zip",
"bytes", "bytes",
"bzip2", "bzip2",
"cargo_toml", "cargo_toml",
@ -148,6 +147,7 @@ dependencies = [
"trust-dns-resolver", "trust-dns-resolver",
"url", "url",
"xz2", "xz2",
"zip",
"zstd", "zstd",
] ]
@ -162,20 +162,6 @@ dependencies = [
"xattr", "xattr",
] ]
[[package]]
name = "binstall-zip"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5eddcdebe8fe727d81b47734b3302ffa49a6fe50376fe6c52c609198c0709e5"
dependencies = [
"byteorder",
"bzip2",
"crc32fast",
"crossbeam-utils",
"flate2",
"zstd",
]
[[package]] [[package]]
name = "bitflags" name = "bitflags"
version = "1.3.2" version = "1.3.2"
@ -2562,6 +2548,20 @@ dependencies = [
"lzma-sys", "lzma-sys",
] ]
[[package]]
name = "zip"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "537ce7411d25e54e8ae21a7ce0b15840e7bfcff15b51d697ec3266cc76bdf080"
dependencies = [
"byteorder",
"bzip2",
"crc32fast",
"crossbeam-utils",
"flate2",
"zstd",
]
[[package]] [[package]]
name = "zstd" name = "zstd"
version = "0.11.2+zstd.1.5.2" version = "0.11.2+zstd.1.5.2"

View file

@ -54,17 +54,13 @@ trust-dns-resolver = { version = "0.21.2", optional = true, default-features = f
url = { version = "2.3.1", features = ["serde"] } url = { version = "2.3.1", features = ["serde"] }
xz2 = "0.1.7" xz2 = "0.1.7"
# Use a fork here since upstream has not published a new release for a long time
# while many of its dependencies are updated.
# Also becasue we need streaming extraction.
#
# Disable all features of zip except for features of compression algorithms: # Disable all features of zip except for features of compression algorithms:
# Disabled features include: # Disabled features include:
# - aes-crypto: Enables decryption of files which were encrypted with AES, absolutely zero use for # - aes-crypto: Enables decryption of files which were encrypted with AES, absolutely zero use for
# this crate. # this crate.
# - time: Enables features using the [time](https://github.com/time-rs/time) crate, # - time: Enables features using the [time](https://github.com/time-rs/time) crate,
# which is not used by this crate. # which is not used by this crate.
zip = { package = "binstall-zip", version = "0.6.3", default-features = false, features = ["deflate", "bzip2", "zstd"] } zip = { version = "0.6.3", default-features = false, features = ["deflate", "bzip2", "zstd"] }
# zstd is also depended by zip. # zstd is also depended by zip.
# Since zip 0.6.3 depends on zstd 0.11, we also have to use 0.11 here, # Since zip 0.6.3 depends on zstd 0.11, we also have to use 0.11 here,