From d80af67c7c9fc7ca1b7504511f447ffc5e7556ab Mon Sep 17 00:00:00 2001 From: LoveSy Date: Fri, 26 Jul 2024 15:19:58 +0800 Subject: [PATCH] Update zip and export its features --- Cargo.toml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b4d384d..a63d9ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,41 @@ exclude = [ ] [dependencies] -zip = "2.1.1" +zip = { version = "2", default-features = false } + +[features] +aes-crypto = ["zip/aes-crypto" ] +chrono = ["zip/chrono"] +deflate = ["zip/deflate"] +deflate-flate2 = ["zip/deflate-flate2"] +deflate-miniz = ["zip/deflate-miniz"] +deflate-zlib = ["zip/deflate-zlib"] +deflate-zlib-ng = ["zip/deflate-zlib-ng"] +deflate-zopfli = ["zip/deflate-zopfli"] +lzma = ["zip/lzma"] +unreserved = ["zip/unreserved"] +xz = ["zip/xz"] +bzip2 = ["zip/bzip2"] +deflate64 = ["zip/deflate64"] +time = ["zip/time"] +zstd = ["zip/zstd"] +aes = ["zip/aes"] +constant_time_eq = ["zip/constant_time_eq"] +hmac = ["zip/hmac"] +pbkdf2 = ["zip/pbkdf2"] +sha1 = ["zip/sha1"] +rand = ["zip/rand"] +zeroize = ["zip/zeroize"] +zopfli = ["zip/zopfli"] +flate2 = ["zip/flate2"] +lzma-rs = ["zip/lzma-rs"] +default = [ + "aes-crypto", + "bzip2", + "deflate64", + "deflate", + "lzma", + "time", + "zstd", + "xz", +]