#zip #archive

zip

Library to support the reading and writing of zip files

50 releases

0.5.2 Apr 6, 2019
0.5.1 Mar 10, 2019
0.5.0 Nov 17, 2018
0.4.2 Jun 22, 2018
0.0.3 Nov 22, 2014

#76 in Compression

Download history 8042/week @ 2019-01-23 6153/week @ 2019-01-30 7756/week @ 2019-02-06 6887/week @ 2019-02-13 6697/week @ 2019-02-20 7464/week @ 2019-02-27 8378/week @ 2019-03-06 9481/week @ 2019-03-13 9675/week @ 2019-03-20 8613/week @ 2019-03-27 8574/week @ 2019-04-03 9231/week @ 2019-04-10 6914/week @ 2019-04-17 7415/week @ 2019-04-24 7561/week @ 2019-05-01

34,390 downloads per month
Used in 167 crates (89 directly)

MIT license

82KB
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

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
~21K SLoC