#zip-file #zip #file-format #unzip #io

rc-zip

An I/O-agnostic implementation of the zip file format

10 stable releases (4 major)

5.1.3 Sep 17, 2024
5.1.2 Sep 5, 2024
5.1.0 Mar 19, 2024
4.0.0 Feb 5, 2024
0.0.0 Jul 9, 2019

#139 in Compression

Download history 150/week @ 2024-07-19 301/week @ 2024-07-26 130/week @ 2024-08-02 108/week @ 2024-08-09 174/week @ 2024-08-16 135/week @ 2024-08-23 372/week @ 2024-08-30 237/week @ 2024-09-06 298/week @ 2024-09-13 241/week @ 2024-09-20 637/week @ 2024-09-27 1229/week @ 2024-10-04 2727/week @ 2024-10-11 2755/week @ 2024-10-18 3596/week @ 2024-10-25 3992/week @ 2024-11-01

13,457 downloads per month
Used in 17 crates (7 directly)

Apache-2.0 OR MIT

150KB
3K SLoC

MIT OR Apache-2.0 licensed Crates.io docs.rs

rc-zip

The rc-zip logo: a person with long hair and nice brows being opened from the bottom up with a zipper. On dark backgrounds, you can see a skull being revealed. On light backgrounds you cannot.

Logo by MisiasArt

This is the core rc-zip crate, containing types, parses, and state machines, and that doesn't do any I/O by itself.

The full README for this crate is the top-level README in the GitHub repository.


lib.rs:

rc-zip is a sans-io library for reading zip files.

It's made up of a bunch of types representing the various parts of a zip file, winnow parsers that can turn byte buffers into those types, and state machines that can use those parsers to read zip files from a stream.

This crate is low-level, you may be interested in either of those higher level wrappers:

Dependencies

~6–9MB
~216K SLoC