API Reference
zip
A zip archive library for Rust supporting reading and writing zip files with common compression.
Official Documentation ↗CompatibilityThis documentation covers version
v2.1. Check the official docs for the latest API surface.Installation
cargo
cargo add zipMethods
No methods match this filter.
zip reads and writes zip archives, exposing entries by index or name.
Key Features
- Read and write zip archives
- Entry lookup by name or index
- Deflate and store compression
Usage Notes
Pin a version and check the official docs for the API surface you depend on before upgrading.
Security notes
Quoted verbatim from the official documentation; this is not a complete threat model. 来源:https://docs.rs/zip/latest/zip/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:53:33.996Z.
- AesSalt aes-crypto A custom salt that can be used instead of a randomly generated one when encrypting files with AES. (https://docs.rs/zip/latest/zip/)
FAQ
- How do I choose compression?
- Pass the compression method in the file options when starting a file, choosing Stored or Deflated as appropriate.
- Can I read without extracting everything?
- Yes. Open a single entry with by_name and copy only that stream.
- How are large archives handled?
- Entries are streamed, so memory use stays low as long as you read each entry instead of loading it fully.
Report a problem with this API docOpens a pre-filled issue on GitHub.