Publish version 0.5.0

Changes include:
* Switched to a different deflate (de)compressor
* New DateTime api, removing default dependencies on time and msdos_time
This commit is contained in:
Mathijs van de Nes 2018-11-17 12:10:31 +01:00
parent ad7a0fd4e5
commit 3d61d9cd8a
2 changed files with 9 additions and 13 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "zip"
version = "0.4.2"
version = "0.5.0"
authors = ["Mathijs van de Nes <git@mathijs.vd-nes.nl>"]
license = "MIT"
repository = "https://github.com/mvdnes/zip-rs.git"

View file

@ -16,7 +16,7 @@ Supported compression formats:
* stored (i.e. none)
* deflate
* bzip2 (optional, enabled by default)
* bzip2
Currently unsupported zip extensions:
@ -32,27 +32,23 @@ With all default features:
```toml
[dependencies]
zip = "0.4"
zip = "0.5"
```
Without the default features:
```toml
[dependencies]
zip = { version = "0.4", default-features = false }
zip = { version = "0.5", default-features = false }
```
You can further control the backend of `deflate` compression method with these features:
* `deflate` (enabled by default) uses [miniz_oxide](https://github.com/Frommi/miniz_oxide)
* `deflate-miniz` uses [miniz](https://github.com/richgel999/miniz)
* `deflate-zlib` uses zlib
The features available are:
For example:
* `deflate`: Enables the deflate compression algorithm, which is the default for zipfiles
* `bzip2`: Enables the BZip2 compression algorithm.
* `time`: Enables features using the [time](https://github.com/rust-lang-deprecated/time) crate.
```toml
[dependencies]
zip = { version = "0.4", features = ["deflate-zlib"], default-features = false }
```
All of these are enabled by default.
Examples
--------