#async #zip #archive #tokio

async_zip2

An asynchronous ZIP archive reading/writing crate

1 unstable release

0.0.1 Sep 28, 2023

#87 in #zip

48 downloads per month
Used in 2 crates (via zipfs)

MIT license

245KB
3K SLoC

This is a crate with changes that haven't been released in the upstream repo yet. Check out the original async_zip crate.

An asynchronous ZIP archive reading/writing crate.


lib.rs:

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.15", features = ["full"] }

Feature Flags

  • full - Enables all below features.
  • full-wasm - Enables all below features that are compatible with WASM.
  • chrono - Enables support for parsing dates via chrono.
  • 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.

Dependencies

~1–11MB
~79K SLoC