#zip #archive #async

astral_async_zip

An asynchronous ZIP archive reading/writing crate

2 releases

0.0.18-rc1 Mar 31, 2026
0.0.17 Nov 14, 2025

#187 in Compression

Download history 3187/week @ 2025-12-23 5476/week @ 2025-12-30 8172/week @ 2026-01-06 18970/week @ 2026-01-13 6181/week @ 2026-01-20 7146/week @ 2026-01-27 9830/week @ 2026-02-03 8465/week @ 2026-02-10 10991/week @ 2026-02-17 15648/week @ 2026-02-24 17530/week @ 2026-03-03 17931/week @ 2026-03-10 18961/week @ 2026-03-17 17885/week @ 2026-03-24 23721/week @ 2026-03-31 22716/week @ 2026-04-07

87,314 downloads per month
Used in 35 crates (6 directly)

MIT license

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 the tokio implementation module.
  • tokio-fs - Enables support for the tokio::fs reading 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.

Read more.


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 zipfile module.

Dependencies

~0.5–3MB
~50K SLoC