diff --git a/Cargo.lock b/Cargo.lock index fc255b955..384d87fc7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -115,6 +115,15 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69" +[[package]] +name = "arbitrary" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" +dependencies = [ + "derive_arbitrary", +] + [[package]] name = "arc-swap" version = "1.6.0" @@ -546,21 +555,18 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.3.2" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if 1.0.0", ] [[package]] name = "crossbeam-utils" -version = "0.8.18" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3a430a770ebd84726f584a90ee7f020d28db52c6d02138900f22341f866d39c" -dependencies = [ - "cfg-if 1.0.0", -] +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "crunchy" @@ -607,6 +613,17 @@ dependencies = [ "powerfmt", ] +[[package]] +name = "derive_arbitrary" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.48", +] + [[package]] name = "derive_more" version = "0.99.17" @@ -668,6 +685,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.48", +] + [[package]] name = "dlv-list" version = "0.5.2" @@ -1448,9 +1476,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memmap2" @@ -3086,7 +3114,7 @@ dependencies = [ "async-trait", "base64 0.13.1", "chrono", - "displaydoc", + "displaydoc 0.1.7", "futures", "log", "reqwest 0.11.23", @@ -3116,18 +3144,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.56" +version = "1.0.62" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" +checksum = "f2675633b1499176c2dff06b0856a27976a8f9d436737b4cf4f312d4d91d8bbb" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.56" +version = "1.0.62" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" +checksum = "d20468752b09f49e909e55a5d338caa8bedf615594e9d80bc4c565d30faf798c" dependencies = [ "proc-macro2", "quote", @@ -3921,13 +3949,17 @@ checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" [[package]] name = "zip" -version = "0.6.6" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" +checksum = "775a2b471036342aa69bc5a602bc889cb0a06cda00477d0c69566757d5553d39" dependencies = [ - "byteorder", + "arbitrary", "crc32fast", "crossbeam-utils", + "displaydoc 0.2.5", + "indexmap", + "memchr", + "thiserror", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 47f1090ab..0b28eb646 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -102,7 +102,7 @@ uuid = { version = "1.9", features = ["v4"] } walkdir = "2" # by default which pulls in an outdated failure version which = { version = "6", default-features = false } -zip = { version = "0.6", default-features = false } +zip = { version = "2", default-features = false } zstd = "0.13" # dist-server only diff --git a/src/cache/cache.rs b/src/cache/cache.rs index a0a6580f2..e23eec76b 100644 --- a/src/cache/cache.rs +++ b/src/cache/cache.rs @@ -281,7 +281,7 @@ impl CacheWrite { { // We're going to declare the compression method as "stored", // but we're actually going to store zstd-compressed blobs. - let opts = FileOptions::default().compression_method(CompressionMethod::Stored); + let opts = FileOptions::<()>::default().compression_method(CompressionMethod::Stored); let opts = if let Some(mode) = mode { opts.unix_permissions(mode) } else { @@ -312,7 +312,7 @@ impl CacheWrite { /// Finish writing data to the cache entry writer, and return the data. pub fn finish(self) -> Result> { - let CacheWrite { mut zip } = self; + let CacheWrite { zip } = self; let cur = zip.finish().context("Failed to finish cache entry zip")?; Ok(cur.into_inner()) }