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:
parent
ad7a0fd4e5
commit
3d61d9cd8a
2 changed files with 9 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "zip"
|
name = "zip"
|
||||||
version = "0.4.2"
|
version = "0.5.0"
|
||||||
authors = ["Mathijs van de Nes <git@mathijs.vd-nes.nl>"]
|
authors = ["Mathijs van de Nes <git@mathijs.vd-nes.nl>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/mvdnes/zip-rs.git"
|
repository = "https://github.com/mvdnes/zip-rs.git"
|
||||||
|
|
20
README.md
20
README.md
|
@ -16,7 +16,7 @@ Supported compression formats:
|
||||||
|
|
||||||
* stored (i.e. none)
|
* stored (i.e. none)
|
||||||
* deflate
|
* deflate
|
||||||
* bzip2 (optional, enabled by default)
|
* bzip2
|
||||||
|
|
||||||
Currently unsupported zip extensions:
|
Currently unsupported zip extensions:
|
||||||
|
|
||||||
|
@ -32,27 +32,23 @@ With all default features:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
zip = "0.4"
|
zip = "0.5"
|
||||||
```
|
```
|
||||||
|
|
||||||
Without the default features:
|
Without the default features:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[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:
|
The features available are:
|
||||||
* `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
|
|
||||||
|
|
||||||
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
|
All of these are enabled by default.
|
||||||
[dependencies]
|
|
||||||
zip = { version = "0.4", features = ["deflate-zlib"], default-features = false }
|
|
||||||
```
|
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
Loading…
Add table
Reference in a new issue