Bug 1888590 - Mark some subtests on trusted-types-event-handlers.html as failing...
[gecko.git] / third_party / rust / zip / README.md
blob3754a7c0f71e3bb22400c7f1558b71f2974f0f47
1 zip-rs
2 ======
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.
13 Info
14 ----
17 A zip library for rust which supports reading and writing of simple ZIP files.
19 Supported compression formats:
21 * stored (i.e. none)
22 * deflate
23 * bzip2
24 * zstd
26 Currently unsupported zip extensions:
28 * Encryption
29 * Multi-disk
31 Usage
32 -----
34 With all default features:
36 ```toml
37 [dependencies]
38 zip = "0.6.4"
39 ```
41 Without the default features:
43 ```toml
44 [dependencies]
45 zip = { version = "0.6.4", default-features = false }
46 ```
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.
58 MSRV
59 ----
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.
69 Examples
70 --------
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.
79 Fuzzing
80 -------
82 Fuzzing support is through [cargo fuzz](https://github.com/rust-fuzz/cargo-fuzz). To install cargo fuzz:
84 ```bash
85 cargo install cargo-fuzz
86 ```
88 To list fuzz targets:
90 ```bash
91 cargo +nightly fuzz list
92 ```
94 To start fuzzing zip extraction:
96 ```bash
97 cargo +nightly fuzz run fuzz_read
98 ```