зеркало из https://github.com/mozilla/gecko-dev.git
f23e8c7f0e
Output from "./mach vendor rust": % ./mach vendor rust 0:01.15 rm -rf /Users/ato/src/gecko/third_party/rust Adding adler32 v1.0.2 Adding build_const v0.2.0 Adding bzip2 v0.3.2 Adding bzip2-sys v0.1.6 Adding cc v1.0.4 Adding crc v1.7.0 Adding flate2 v1.0.1 Adding miniz_oxide v0.1.2 Adding miniz_oxide_c_api v0.1.2 MozReview-Commit-ID: EBVi4OdzYm3 --HG-- extra : rebase_source : b2f756574ebabc96b1378713a7ee6247274a388e |
||
---|---|---|
.. | ||
examples | ||
script | ||
src | ||
tests | ||
.cargo-checksum.json | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
appveyor.yml |
README.md
zip-rs
Info
A zip library for rust which supports reading and writing of simple ZIP files.
Supported compression formats:
- stored (i.e. none)
- deflate
- bzip2 (optional, enabled by default)
Currently unsupported zip extensions:
- Most of ZIP64, although there is some support for archives with more than 65535 files
- Encryption
- Multi-disk
We aim to support rust versions 1.20+.
Usage
With all default features:
[dependencies]
zip = "0.3"
Without the default features:
[dependencies]
zip = { version = "0.3", default-features = false }
Examples
See the examples directory for:
- How to write a file to a zip.
- how to write a directory of files to a zip (using walkdir).
- How to extract a zip file.
- How to extract a single file from a zip.