#zip #archive

zip

Library to support the reading and writing of zip files

47 releases

0.4.2 Jun 22, 2018
0.4.0 May 27, 2018
0.3.1 Feb 17, 2018
0.2.6 Aug 17, 2017
0.0.3 Nov 22, 2014

#7 in Compression

Download history 2751/week @ 2018-09-19 4262/week @ 2018-09-26 5439/week @ 2018-10-03 5283/week @ 2018-10-10 5480/week @ 2018-10-17 5129/week @ 2018-10-24 5337/week @ 2018-10-31 6072/week @ 2018-11-07 6695/week @ 2018-11-14 6400/week @ 2018-11-21 5369/week @ 2018-11-28 6164/week @ 2018-12-05 5974/week @ 2018-12-12

21,088 downloads per month
Used in 131 crates (66 directly)

MIT license

81KB
2K SLoC

zip-rs

Build Status Build status Crates.io version

Documentation

Info

A zip library for rust which supports reading and writing of simple ZIP files.

Supported compression formats:

  • stored (i.e. none)
  • deflate
  • bzip2

Currently unsupported zip extensions:

  • Encryption
  • Multi-disk

We aim to support rust versions 1.20+.

Usage

With all default features:

[dependencies]
zip = "0.5"

Without the default features:

[dependencies]
zip = { version = "0.5", default-features = false }

The features available are:

  • deflate: Enables the deflate compression algorithm, which is the default for zipfiles
  • bzip2: Enables the BZip2 compression algorithm.
  • time: Enables features using the time crate.

All of these are enabled by default.

Examples

See the examples directory for:

  • How to write a file to a zip.
  • how to write a directory of files to a zip (using walkdir).
  • How to extract a zip file.
  • How to extract a single file from a zip.
  • How to read a zip from the standard input.

Dependencies

~1.5MB
~20K SLoC