#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

#136 in Compression

Download history 288/week @ 2024-07-28 111/week @ 2024-08-04 106/week @ 2024-08-11 169/week @ 2024-08-18 148/week @ 2024-08-25 438/week @ 2024-09-01 170/week @ 2024-09-08 311/week @ 2024-09-15 250/week @ 2024-09-22 902/week @ 2024-09-29 1294/week @ 2024-10-06 2878/week @ 2024-10-13 3107/week @ 2024-10-20 3620/week @ 2024-10-27 5523/week @ 2024-11-03 5184/week @ 2024-11-10

17,536 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