2 releases
| 0.0.18-rc1 | Mar 31, 2026 |
|---|---|
| 0.0.17 | Nov 14, 2025 |
#187 in Compression
87,314 downloads per month
Used in 35 crates
(6 directly)
215KB
2.5K
SLoC
An asynchronous ZIP archive reading/writing crate.
Features
- A base implementation atop
futures's IO traits. - An extended implementation atop
tokio's IO traits. - Support for Stored, Deflate, bzip2, LZMA, zstd, and xz compression methods.
- Various different reading approaches (seek, stream, filesystem, in-memory buffer).
- Support for writing complete data (u8 slices) or stream writing using data descriptors.
- Initial support for ZIP64 reading and writing.
- Aims for reasonable specification compliance.
Installation
[dependencies]
async_zip = { version = "0.0.17", features = ["full"] }
Feature Flags
full- Enables all below features.full-wasm- Enables all below features that are compatible with WASM.tokio- Enables support for thetokioimplementation module.tokio-fs- Enables support for thetokio::fsreading module.deflate- Enables support for the Deflate compression method.bzip2- Enables support for the bzip2 compression method.lzma- Enables support for the LZMA compression method.zstd- Enables support for the zstd compression method.xz- Enables support for the xz compression method.
async_zip
A fork of rs-async-zip intended for use in uv.
As compared to rs-async-zip, this fork contains the following modifications:
- Support for streaming the central directory and end of central directory records.
- Support for tracking offsets during streamed reads.
- Support for accessing data descriptors during streamed reads.
- Stricter validation around extra field headers.
- Minor changes to better align with the Python ecosystem's
zipfilemodule.
Dependencies
~0.5–3MB
~50K SLoC