#zip #archive

zip

Library to support the reading and writing of zip files

51 releases

✓ Uses Rust 2018 edition

0.5.5 Mar 1, 2020
0.5.3 Aug 14, 2019
0.5.2 Apr 6, 2019
0.5.1 Mar 10, 2019
0.0.3 Nov 22, 2014

#3 in Compression

Download history 17834/week @ 2019-12-02 18397/week @ 2019-12-09 17188/week @ 2019-12-16 11697/week @ 2019-12-23 13802/week @ 2019-12-30 22968/week @ 2020-01-06 20176/week @ 2020-01-13 22724/week @ 2020-01-20 24197/week @ 2020-01-27 23484/week @ 2020-02-03 21382/week @ 2020-02-10 19943/week @ 2020-02-17 21500/week @ 2020-02-24 22591/week @ 2020-03-02 22038/week @ 2020-03-09 19279/week @ 2020-03-16

83,871 downloads per month
Used in 278 crates (143 directly)

MIT license

85KB
2K SLoC

Unfortunately, due to a lack of time and loss of interest, this project will no longer be actively maintained.

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–1.7MB
~27K SLoC