add deflate

This commit is contained in:
Dmitry Belyaev 2023-08-01 18:02:18 +03:00
parent 65c64f17d7
commit 990a3e0c65
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
2 changed files with 27 additions and 0 deletions

26
Cargo.lock generated
View File

@ -2,12 +2,19 @@
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 3
[[package]]
name = "adler"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]] [[package]]
name = "async-compression" name = "async-compression"
version = "0.4.1" version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b74f44609f0f91493e3082d3734d98497e094777144380ea4db9f9905dd5b6" checksum = "62b74f44609f0f91493e3082d3734d98497e094777144380ea4db9f9905dd5b6"
dependencies = [ dependencies = [
"flate2",
"futures-core", "futures-core",
"futures-io", "futures-io",
"memchr", "memchr",
@ -98,6 +105,16 @@ dependencies = [
"cfg-if", "cfg-if",
] ]
[[package]]
name = "flate2"
version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]] [[package]]
name = "futures" name = "futures"
version = "0.1.31" version = "0.1.31"
@ -220,6 +237,15 @@ version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
[[package]]
name = "miniz_oxide"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
dependencies = [
"adler",
]
[[package]] [[package]]
name = "mio" name = "mio"
version = "0.8.4" version = "0.8.4"

View File

@ -10,6 +10,7 @@ edition = "2021"
json = "0.12" json = "0.12"
tokio = { version = "1.21.0", features = ["full"] } tokio = { version = "1.21.0", features = ["full"] }
async_zip = { git = "https://github.com/Majored/rs-async-zip", rev = "ff0d985", features = [ async_zip = { git = "https://github.com/Majored/rs-async-zip", rev = "ff0d985", features = [
"deflate",
"zstd", "zstd",
"tokio", "tokio",
"tokio-fs", "tokio-fs",