4 [![Build Status](https://img.shields.io/github/workflow/status/zip-rs/zip/CI)](https://github.com/zip-rs/zip/actions?query=branch%3Amaster+workflow%3ACI)
5 [![Crates.io version](https://img.shields.io/crates/v/zip.svg)](https://crates.io/crates/zip)
6 [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/rQ7H9cSsF4)
8 [Documentation](https://docs.rs/zip/0.6.3/zip/)
10 > PSA: This version of the ZIP crate will not gain any new features,
11 > and will only be updated if major security issues are found.
17 A zip library for rust which supports reading and writing of simple ZIP files.
19 Supported compression formats:
26 Currently unsupported zip extensions:
34 With all default features:
41 Without the default features:
45 zip = { version = "0.6.4", default-features = false }
48 The features available are:
50 * `aes-crypto`: Enables decryption of files which were encrypted with AES. Supports AE-1 and AE-2 methods.
51 * `deflate`: Enables the deflate compression algorithm, which is the default for zip files.
52 * `bzip2`: Enables the BZip2 compression algorithm.
53 * `time`: Enables features using the [time](https://github.com/rust-lang-deprecated/time) crate.
54 * `zstd`: Enables the Zstandard compression algorithm.
56 All of these are enabled by default.
61 Our current Minimum Supported Rust Version is **1.59.0**. When adding features,
62 we will follow these guidelines:
64 - We will always support the latest four minor Rust versions. This gives you a 6
65 month window to upgrade your compiler.
66 - Any change to the MSRV will be accompanied with a **minor** version bump
67 - While the crate is pre-1.0, this will be a change to the PATCH version.
72 See the [examples directory](examples) for:
73 * How to write a file to a zip.
74 * How to write a directory of files to a zip (using [walkdir](https://github.com/BurntSushi/walkdir)).
75 * How to extract a zip file.
76 * How to extract a single file from a zip.
77 * How to read a zip from the standard input.
82 Fuzzing support is through [cargo fuzz](https://github.com/rust-fuzz/cargo-fuzz). To install cargo fuzz:
85 cargo install cargo-fuzz
91 cargo +nightly fuzz list
94 To start fuzzing zip extraction:
97 cargo +nightly fuzz run fuzz_read