Skip to content

Commit

Permalink
update: update zip requirement from 0.6.6 to 2.2.1 in /sdk (#698)
Browse files Browse the repository at this point in the history
* update: update zip requirement from 0.6.6 to 2.2.1 in /sdk

---
updated-dependencies:
- dependency-name: zip
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update to use zip's new SimpleFileOptions type

* Allow PR titles generated by Dependabot

* Bump memchr to 2.7.4

* Update Cargo.lock

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Scouten <scouten@adobe.com>
  • Loading branch information
dependabot[bot] and scouten-adobe authored Dec 11, 2024
1 parent bb3d66e commit 60b8ab5
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ jobs:
exit 0;
fi
if echo "$PR_TITLE" | grep -E '^update: update '; then
echo "Exception / OK: Dependabot update pattern"
exit 0;
fi
echo "Installing commitlint-rs. Please wait 30-40 seconds ..."
cargo install --quiet commitlint-rs
set -e
Expand Down
72 changes: 58 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion make_test_images/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ image = { version = "0.25.2", default-features = false, features = [
"jpeg",
"png",
] }
memchr = "2.7.1"
memchr = "2.7.4"
nom = "7.1.3"
regex = "1.5.6"
serde = "1.0.197"
Expand Down
4 changes: 2 additions & 2 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jfifdump = "0.5.1"
log = "0.4.8"
lopdf = { version = "0.31.0", optional = true }
lazy_static = "1.4.0"
memchr = "2.7.1"
memchr = "2.7.4"
mp4 = "0.14.0"
pem = "3.0.2"
png_pong = "0.9.1"
Expand Down Expand Up @@ -127,7 +127,7 @@ url = "2.5.3"
uuid = { version = "1.10.0", features = ["serde", "v4", "js"] }
x509-parser = "0.16.0"
x509-certificate = "0.21.0"
zip = { version = "0.6.6", default-features = false }
zip = { version = "2.2.1", default-features = false }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ureq = "2.4.0"
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use schemars::JsonSchema;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use serde_with::skip_serializing_none;
use uuid::Uuid;
use zip::{write::FileOptions, ZipArchive, ZipWriter};
use zip::{write::SimpleFileOptions, ZipArchive, ZipWriter};

use crate::{
assertion::AssertionDecodeError,
Expand Down Expand Up @@ -453,7 +453,7 @@ impl Builder {
{
let mut zip = ZipWriter::new(stream);
let options =
FileOptions::default().compression_method(zip::CompressionMethod::Stored);
SimpleFileOptions::default().compression_method(zip::CompressionMethod::Stored);
// write a version file
zip.start_file("version.txt", options)
.map_err(|e| Error::OtherError(Box::new(e)))?;
Expand Down

0 comments on commit 60b8ab5

Please sign in to comment.