2 releases

0.1.1 Sep 26, 2023
0.1.0 Sep 26, 2023

#378 in Compression

Download history 1/week @ 2024-02-15 19/week @ 2024-02-22 29/week @ 2024-02-29 8/week @ 2024-03-07 4/week @ 2024-03-14

51 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
~31K SLoC