Skip to content

Commit a17df89

Browse files
Merge pull request #133 from ctron/feature/liblzma_1
chore: switch from xz2 to liblzma
2 parents 106c365 + 61f0804 commit a17df89

File tree

5 files changed

+27
-24
lines changed

5 files changed

+27
-24
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/target
2+
3+
# Rust Rover
4+
/.idea

Cargo.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ http = "1.1.0"
3838
human_bytes = { version = "0.4.3", default-features = false }
3939
indicatif = "0.17.8"
4040
indoc = "2.0.5"
41+
liblzma = "0.3.4"
4142
md-5 = "0.10.6"
4243
num-format = "0.4.4"
4344
pgvector = "0.4.0"
@@ -65,7 +66,6 @@ tracing = "0.1.40"
6566
tracing-indicatif = "0.3.6"
6667
tracing-subscriber = "0.3.18"
6768
url = "2.5.2"
68-
xz2 = "0.1.7"
6969
zip = "2.2.0"
7070

7171
[workspace.metadata.release]

postgresql_archive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ futures-util = { workspace = true }
1717
hex = { workspace = true }
1818
http = { workspace = true }
1919
human_bytes = { workspace = true, default-features = false }
20+
liblzma = { workspace = true }
2021
md-5 = { workspace = true, optional = true }
2122
num-format = { workspace = true }
2223
quick-xml = { workspace = true, features = ["serialize"], optional = true }
@@ -38,7 +39,6 @@ tokio = { workspace = true, features = ["full"], optional = true }
3839
tracing = { workspace = true, features = ["log"] }
3940
tracing-indicatif = { workspace = true }
4041
url = { workspace = true }
41-
xz2 = { workspace = true }
4242
zip = { workspace = true }
4343

4444
[dev-dependencies]

postgresql_archive/src/extractor/tar_xz_extractor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ use crate::extractor::ExtractDirectories;
22
use crate::Error::Unexpected;
33
use crate::Result;
44
use human_bytes::human_bytes;
5+
use liblzma::bufread::XzDecoder;
56
use num_format::{Locale, ToFormattedString};
67
use std::fs::{create_dir_all, File};
78
use std::io::{copy, BufReader, Cursor};
89
use std::path::PathBuf;
910
use tar::Archive;
1011
use tracing::{debug, instrument, warn};
11-
use xz2::bufread::XzDecoder;
1212

1313
/// Extracts the compressed tar `bytes` to paths defined in `extract_directories`.
1414
///

0 commit comments

Comments
 (0)