File: 2001_zip.patch

package info (click to toggle)
sccache 0.10.0-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,980 kB
  • sloc: sh: 358; cpp: 112; perl: 68; makefile: 32; ansic: 31
file content (28 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: use newer release of crate zip
Author: Blair Noctis <ncts@debian.org>
Forwarded: not-needed
Last-Update: 2025-04-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -102,7 +102,7 @@
 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
--- a/src/cache/cache.rs
+++ b/src/cache/cache.rs
@@ -52,7 +52,7 @@
 use std::sync::Arc;
 use std::time::Duration;
 use tempfile::NamedTempFile;
-use zip::write::FileOptions;
+use zip::write::SimpleFileOptions as FileOptions;
 use zip::{CompressionMethod, ZipArchive, ZipWriter};
 
 use crate::errors::*;