feat: add compress util

This commit is contained in:
2023-09-09 20:21:39 +08:00
parent 29c95f3147
commit 7fb94fdb07
4 changed files with 147 additions and 0 deletions

20
Cargo.lock generated
View File

@@ -430,6 +430,15 @@ dependencies = [
"libc",
]
[[package]]
name = "crc32fast"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
dependencies = [
"cfg-if",
]
[[package]]
name = "crypto-bigint"
version = "0.5.3"
@@ -671,6 +680,16 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cda653ca797810c02f7ca4b804b40b8b95ae046eb989d356bce17919a8c25499"
[[package]]
name = "flate2"
version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6c98ee8095e9d1dcbf2fcc6d95acccb90d1c81db1e44725c6a984b1dbdfb010"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]]
name = "fnv"
version = "1.0.7"
@@ -2162,6 +2181,7 @@ dependencies = [
"base64",
"chrono",
"clap",
"flate2",
"hex",
"openpgp-card",
"openpgp-card-pcsc",