| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| .github/ | 03-May-2024 | - | 101 | 82 | ||
| benches/ | 03-May-2024 | - | 83 | 62 | ||
| examples/ | 03-May-2024 | - | 386 | 316 | ||
| patches/ | 03-May-2024 | - | 17 | 16 | ||
| src/ | 03-May-2024 | - | 4,921 | 3,630 | ||
| tests/ | 03-May-2024 | - | 673 | 476 | ||
| .cargo_vcs_info.json | D | 03-May-2024 | 94 | 6 | 6 | |
| .gitignore | D | 03-May-2024 | 27 | 5 | 3 | |
| Android.bp | D | 03-May-2024 | 1.1 KiB | 51 | 47 | |
| CHANGELOG.md | D | 03-May-2024 | 431 | 9 | 5 | |
| CODE_OF_CONDUCT.md | D | 03-May-2024 | 3.3 KiB | 77 | 57 | |
| Cargo.toml | D | 03-May-2024 | 2.3 KiB | 124 | 103 | |
| Cargo.toml.orig | D | 03-May-2024 | 1.6 KiB | 50 | 43 | |
| LICENSE | D | 03-May-2024 | 1.1 KiB | 21 | 17 | |
| METADATA | D | 03-May-2024 | 612 | 24 | 22 | |
| MODULE_LICENSE_MIT | D | 03-May-2024 | 0 | |||
| OWNERS | D | 03-May-2024 | 40 | 2 | 1 | |
| README.md | D | 03-May-2024 | 2.4 KiB | 99 | 68 | |
| TEST_MAPPING | D | 03-May-2024 | 683 | 30 | 29 | |
| cargo2android.json | D | 03-May-2024 | 211 | 12 | 11 |
README.md
1zip-rs 2====== 3 4[](https://github.com/zip-rs/zip/actions?query=branch%3Amaster+workflow%3ACI) 5[](https://crates.io/crates/zip) 6[](https://discord.gg/rQ7H9cSsF4) 7 8[Documentation](https://docs.rs/zip/0.6.3/zip/) 9 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. 12 13Info 14---- 15 16 17A zip library for rust which supports reading and writing of simple ZIP files. 18 19Supported compression formats: 20 21* stored (i.e. none) 22* deflate 23* bzip2 24* zstd 25 26Currently unsupported zip extensions: 27 28* Encryption 29* Multi-disk 30 31Usage 32----- 33 34With all default features: 35 36```toml 37[dependencies] 38zip = "0.6.4" 39``` 40 41Without the default features: 42 43```toml 44[dependencies] 45zip = { version = "0.6.4", default-features = false } 46``` 47 48The features available are: 49 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. 55 56All of these are enabled by default. 57 58MSRV 59---- 60 61Our current Minimum Supported Rust Version is **1.59.0**. When adding features, 62we will follow these guidelines: 63 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. 68 69Examples 70-------- 71 72See 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. 78 79Fuzzing 80------- 81 82Fuzzing support is through [cargo fuzz](https://github.com/rust-fuzz/cargo-fuzz). To install cargo fuzz: 83 84```bash 85cargo install cargo-fuzz 86``` 87 88To list fuzz targets: 89 90```bash 91cargo +nightly fuzz list 92``` 93 94To start fuzzing zip extraction: 95 96```bash 97cargo +nightly fuzz run fuzz_read 98``` 99