diff --git a/Cargo.lock b/Cargo.lock index 6a217c54c..f0f0fd404 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,15 +38,6 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" -[[package]] -name = "arbitrary" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" -dependencies = [ - "derive_arbitrary", -] - [[package]] name = "async-trait" version = "0.1.92" @@ -270,12 +261,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossbeam-utils" -version = "0.8.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" - [[package]] name = "crypto-common" version = "0.1.7" @@ -301,17 +286,6 @@ version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" -[[package]] -name = "derive_arbitrary" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b034bd7d5f032402a2479444dcc6f74e36a03f31854d41680fb240ef682a1ac" -dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.9", -] - [[package]] name = "digest" version = "0.10.7" @@ -2036,7 +2010,7 @@ dependencies = [ "tracing", "uuid", "wait-timeout", - "zip 2.6.1", + "zip", ] [[package]] @@ -2293,7 +2267,7 @@ dependencies = [ "toml 1.1.8+spec-1.1.0", "tracing", "ureq", - "zip 9.0.5", + "zip", ] [[package]] @@ -3551,20 +3525,6 @@ dependencies = [ "syn 3.0.9", ] -[[package]] -name = "zip" -version = "2.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dcb24d0152526ae49b9b96c1dcf71850ca1e0b882e4e28ed898a93c41334744" -dependencies = [ - "arbitrary", - "crc32fast", - "crossbeam-utils", - "flate2", - "indexmap", - "memchr", -] - [[package]] name = "zip" version = "9.0.5" @@ -3577,6 +3537,7 @@ dependencies = [ "memchr", "nix", "typed-path", + "zopfli", ] [[package]] @@ -3591,6 +3552,18 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" +[[package]] +name = "zopfli" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf7fc5d30c28483d93805c4a5e12b05bbb52407fa67c5f8bd552374cd01fb11" +dependencies = [ + "bumpalo", + "crc32fast", + "log", + "simd-adler32", +] + [[package]] name = "zstd" version = "0.14.3" diff --git a/crates/tinyagents-harness/Cargo.toml b/crates/tinyagents-harness/Cargo.toml index 0b32778dd..30ae90c27 100644 --- a/crates/tinyagents-harness/Cargo.toml +++ b/crates/tinyagents-harness/Cargo.toml @@ -17,7 +17,7 @@ base64 = "0.22" chrono = { workspace = true } dirs = { version = "6", optional = true } tar = { version = "0.4", default-features = false, optional = true } -zip = { version = "2", default-features = false, features = ["deflate-flate2", "flate2"], optional = true } +zip = { version = "9", default-features = false, features = ["deflate"], optional = true } flate2 = { version = "1", optional = true } oxipng = { version = "9", default-features = false, optional = true } futures = { workspace = true } diff --git a/crates/tinyagents-harness/src/multimodal/archive/ops.rs b/crates/tinyagents-harness/src/multimodal/archive/ops.rs index a8be3b6ed..bb9755501 100644 --- a/crates/tinyagents-harness/src/multimodal/archive/ops.rs +++ b/crates/tinyagents-harness/src/multimodal/archive/ops.rs @@ -93,7 +93,12 @@ fn inspect_zip(bytes: &[u8], limits: &ArchiveLimits) -> Result