From 00e2baa740c8c62f1336ff2ce19eccb3c450e056 Mon Sep 17 00:00:00 2001 From: konstin Date: Thu, 19 Sep 2024 12:48:29 +0200 Subject: [PATCH] Disable more features of zip by default If i understand correctly, this is an enhancement and not a breaking change, since bzip2 support was already feature-gated and the `time` feature is unused. --- Cargo.lock | 43 +------------------------------------------ Cargo.toml | 6 +++--- 2 files changed, 4 insertions(+), 45 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 357813e..9cbb31e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -139,15 +139,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" -[[package]] -name = "deranged" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" -dependencies = [ - "powerfmt", -] - [[package]] name = "derive_arbitrary" version = "1.3.2" @@ -301,12 +292,6 @@ dependencies = [ "adler", ] -[[package]] -name = "num-conv" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" - [[package]] name = "once_cell" version = "1.19.0" @@ -319,12 +304,6 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" -[[package]] -name = "powerfmt" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" - [[package]] name = "proc-macro2" version = "1.0.83" @@ -345,7 +324,7 @@ dependencies = [ [[package]] name = "python-pkginfo" -version = "0.6.2" +version = "0.6.3" dependencies = [ "bzip2", "flate2", @@ -503,25 +482,6 @@ dependencies = [ "syn", ] -[[package]] -name = "time" -version = "0.3.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" -dependencies = [ - "deranged", - "num-conv", - "powerfmt", - "serde", - "time-core", -] - -[[package]] -name = "time-core" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" - [[package]] name = "unicode-ident" version = "1.0.12" @@ -692,5 +652,4 @@ dependencies = [ "flate2", "indexmap", "thiserror", - "time", ] diff --git a/Cargo.toml b/Cargo.toml index 627db5f..7cec04b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "python-pkginfo" -version = "0.6.2" +version = "0.6.3" authors = ["messense "] edition = "2021" description = "Parse Python package metadata from sdist and bdists and etc." @@ -21,10 +21,10 @@ serde = { version = "1.0.126", features = ["derive"], optional = true } tar = "0.4.35" thiserror = "1.0.30" xz = { version = "0.1.0", optional = true } -zip = { version = ">=0.6,<2", default-features = false, features = ["bzip2", "deflate", "time"] } +zip = { version = ">=0.6,<2", default-features = false, features = ["deflate"] } [dev-dependencies] serde_json = "1.0.99" [features] -deprecated-formats = ["bzip2", "xz"] +deprecated-formats = ["bzip2", "xz", "zip/bzip2"]