#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

#163 in Compression

Download history 169/week @ 2024-07-22 286/week @ 2024-07-29 115/week @ 2024-08-05 153/week @ 2024-08-12 123/week @ 2024-08-19 160/week @ 2024-08-26 444/week @ 2024-09-02 152/week @ 2024-09-09 361/week @ 2024-09-16 202/week @ 2024-09-23 927/week @ 2024-09-30 1303/week @ 2024-10-07 2918/week @ 2024-10-14 3065/week @ 2024-10-21 3762/week @ 2024-10-28 5503/week @ 2024-11-04

15,299 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