Crate zip
A library for reading and writing ZIP archives. ZIP is a format designed for cross-platform file "archiving". That is, storing a collection of files in a single datastream to make them easier to share between computers. Additionally, ZIP is able to compress and encrypt files in its archives.
The current implementation is based on PKWARE's APPNOTE.TXT v6.3.9
zip has support for the most common ZIP archives found in common use.
However, in special cases,
there are some zip archives that are difficult to read or write.
This is a list of supported features:
| Reading | Writing | |
|---|---|---|
| Stored | ✅ | ✅ |
| Deflate | ✅ -> | ✅ -> |
| Deflate64 | ✅ | |
| Bzip2 | ✅ | ✅ |
| ZStandard | ✅ | ✅ |
| LZMA | ✅ | |
| XZ | ✅ | ✅ |
| PPMd | ✅ | ✅ |
| AES encryption | ✅ | ✅ |
| ZipCrypto deprecated encryption | ✅ | ✅ |
Modules
- extra_fields types for extra fields
- read Types for reading ZIP archives
- result Error types that can be emitted from this library
-
unstable
Unstable APIs All APIs accessible by importing this module are unstable; They may be changed in patch releases. You MUST use an exact version specifier in
Cargo.toml, to indicate the version of this API you're using: - write Types for creating ZIP archives