#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

#140 in Compression

Download history 134/week @ 2024-08-20 151/week @ 2024-08-27 450/week @ 2024-09-03 173/week @ 2024-09-10 345/week @ 2024-09-17 257/week @ 2024-09-24 976/week @ 2024-10-01 1650/week @ 2024-10-08 2782/week @ 2024-10-15 3265/week @ 2024-10-22 4120/week @ 2024-10-29 5447/week @ 2024-11-05 5233/week @ 2024-11-12 7589/week @ 2024-11-19 10226/week @ 2024-11-26 7390/week @ 2024-12-03

31,282 downloads per month
Used in 18 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