#zip #archive

zip

Library to support the reading and writing of zip files

50 releases

✓ Uses Rust 2018 edition

0.5.4 Jan 6, 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

#4 in Compression

Download history 15909/week @ 2019-11-01 16013/week @ 2019-11-08 16857/week @ 2019-11-15 17337/week @ 2019-11-22 17411/week @ 2019-11-29 18892/week @ 2019-12-06 17353/week @ 2019-12-13 11721/week @ 2019-12-20 13280/week @ 2019-12-27 21769/week @ 2020-01-03 21420/week @ 2020-01-10 21116/week @ 2020-01-17 23902/week @ 2020-01-24 23994/week @ 2020-01-31 20276/week @ 2020-02-07

68,744 downloads per month
Used in 265 crates (135 directly)

MIT license

83KB
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.6MB
~26K SLoC