Skip to content

Commit bba28d4

Browse files
committed
Use zip instead of deprecated zip-extract
The zip-extract crate was deprecated last year because the upstream zip crate improved its API. See: https://crates.io/crates/zip-extract/0.4.1
1 parent 9b6c674 commit bba28d4

3 files changed

Lines changed: 3 additions & 14 deletions

File tree

Cargo.lock

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

cargo-pgrx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tar = "0.4.44"
5959
ureq = { version = "3.0.10", default-features = false, features = ["gzip", "platform-verifier", "rustls"] }
6060
url.workspace = true
6161
which = "7.0.3"
62-
zip-extract = "0.2.2"
62+
zip = "5.1.1"
6363
postgres = { version = "0.19.10", features = ["with-serde_json-1", "with-uuid-1"] }
6464
uuid = { version = "1.16.0", features = ["v4"] }
6565

cargo-pgrx/src/command/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ fn untar(bytes: &[u8], pgrxdir: &Path, pg_config: &PgConfig, init: &Init) -> eyr
302302
{
303303
// it's a zip download from EDB
304304
use std::io::Cursor;
305-
zip_extract::extract(Cursor::new(bytes), &unpackdir, false)?;
305+
zip::ZipArchive::new(Cursor::new(bytes))?.extract(&unpackdir)?;
306306
} else {
307307
let mut tar_decoder = Archive::new(BzDecoder::new(bytes));
308308
tar_decoder.unpack(&unpackdir)?;

0 commit comments

Comments
 (0)