support .zstd, .xz and .bz2 compressed inputs
Some checks are pending
CI / matrix (push) Waiting to run
CI / ${{ matrix.check }} (push) Blocked by required conditions
CI / build (push) Blocked by required conditions
CI / build-nixpkgs (push) Blocked by required conditions

This commit is contained in:
Robin Appelman 2024-11-05 17:21:14 +01:00
commit 4f3d6a17ab
4 changed files with 80 additions and 3 deletions

58
Cargo.lock generated
View file

@ -117,6 +117,16 @@ dependencies = [
"libc",
]
[[package]]
name = "bzip2-rs"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "beeb59e7e4c811ab37cc73680c798c7a5da77fc9989c62b09138e31ee740f735"
dependencies = [
"crc32fast",
"tinyvec",
]
[[package]]
name = "bzip2-sys"
version = "0.1.11+1.0.8"
@ -648,6 +658,7 @@ version = "0.1.5"
dependencies = [
"ahash",
"base64 0.22.1",
"bzip2-rs",
"clap",
"derive_more",
"flate2",
@ -659,6 +670,7 @@ dependencies = [
"ratatui",
"rayon",
"regex",
"ruzstd",
"serde",
"serde_json",
"tar",
@ -666,6 +678,7 @@ dependencies = [
"tikv-jemallocator",
"time",
"tinystr",
"xz2",
"zip",
]
@ -696,6 +709,17 @@ dependencies = [
"crc",
]
[[package]]
name = "lzma-sys"
version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"
dependencies = [
"cc",
"libc",
"pkg-config",
]
[[package]]
name = "main_error"
version = "0.1.2"
@ -1003,6 +1027,15 @@ version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248"
[[package]]
name = "ruzstd"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "99c3938e133aac070997ddc684d4b393777d293ba170f2988c8fd5ea2ad4ce21"
dependencies = [
"twox-hash",
]
[[package]]
name = "ryu"
version = "1.0.18"
@ -1269,6 +1302,22 @@ dependencies = [
"serde",
]
[[package]]
name = "tinyvec"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
[[package]]
name = "twox-hash"
version = "1.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
dependencies = [
"cfg-if",
"static_assertions",
]
[[package]]
name = "typenum"
version = "1.17.0"
@ -1452,6 +1501,15 @@ dependencies = [
"rustix",
]
[[package]]
name = "xz2"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"
dependencies = [
"lzma-sys",
]
[[package]]
name = "zerocopy"
version = "0.7.35"