Skip to content

Commit

Permalink
Add zstd support to internal dotslash
Browse files Browse the repository at this point in the history
Reviewed By: Imxset21

Differential Revision: D65046089

fbshipit-source-id: 5c691feb91e99c68aa4184d6a5f2625a563f6f6b
  • Loading branch information
zertosh authored and facebook-github-bot committed Oct 28, 2024
1 parent 7f97830 commit 9dddb37
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/util/unarchive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use tar::Archive;
use xz2::bufread::XzDecoder;
#[cfg(not(dotslash_internal))]
use zip::ZipArchive;
#[cfg(not(dotslash_internal))]
use zstd::stream::read::Decoder as ZstdDecoder;

use crate::util::fs_ctx;
Expand All @@ -29,7 +28,6 @@ pub enum ArchiveType {
TarGz,
#[cfg(not(dotslash_internal))]
TarXz,
#[cfg(not(dotslash_internal))]
TarZstd,
#[cfg(not(dotslash_internal))]
Zip,
Expand Down Expand Up @@ -83,7 +81,6 @@ pub fn unpack_file(
let decoder = XzDecoder::new(reader);
unpack_tar(decoder, &destination_dir)
}
#[cfg(not(dotslash_internal))]
ArchiveType::TarZstd => {
let decoder = ZstdDecoder::with_buffer(reader)?;
unpack_tar(decoder, &destination_dir)
Expand Down

0 comments on commit 9dddb37

Please sign in to comment.