#zip #zip-archive

zip-rs

Opinionated library for parsing ZIP archives

2 releases

0.1.1 Sep 26, 2023
0.1.0 Sep 26, 2023

#740 in Compression

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.7–1.5MB
~28K SLoC