2 releases

0.1.1 Sep 26, 2023
0.1.0 Sep 26, 2023

#384 in Compression

Download history 1/week @ 2024-02-16 21/week @ 2024-02-23 28/week @ 2024-03-01 7/week @ 2024-03-08 4/week @ 2024-03-15 32/week @ 2024-03-29 5/week @ 2024-04-05 7/week @ 2024-04-19 163/week @ 2024-04-26

186 downloads per month

MIT license

67KB
560 lines

This library offers the ability to unzip files in-memory.

Implementation notes

  • resilience to zip bombs through configuring decompression limit
  • ZIP archives read from the file system are memory mapped
  • there is currently not support for zip64
  • parsing is zero-copy

lib.rs:

  • Zip file parsing library
  • use zip_rs::ZipArchive;

  • let mut archive = ZipArchive::from_path("./foo.zip").unwrap();
  • for file in archive.files() {
  • // ...
  • }
  • 
    

Dependencies

~0.8–1.7MB
~30K SLoC