mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-07 04:30:03 +00:00
Add PkgFmt::Tbz2
This commit is contained in:
parent
3b5ea35182
commit
1b9f8c0ffc
4 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,7 @@ use std::fs::File;
|
|||
use std::io::{self, BufRead, Read};
|
||||
use std::path::Path;
|
||||
|
||||
use bzip2::bufread::BzDecoder;
|
||||
use flate2::bufread::GzDecoder;
|
||||
use log::debug;
|
||||
use tar::Archive;
|
||||
|
@ -19,6 +20,7 @@ pub(super) fn create_tar_decoder(
|
|||
|
||||
let r: Box<dyn Read> = match fmt {
|
||||
Tar => Box::new(dat),
|
||||
Tbz2 => Box::new(BzDecoder::new(dat)),
|
||||
Tgz => Box::new(GzDecoder::new(dat)),
|
||||
Txz => Box::new(XzDecoder::new(dat)),
|
||||
Tzstd => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue