-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for per-item FileOptions (#14)
* Add support for setting per-item `FileOptions` (mapping) (#13) * Upgrades the zip dependency to version 0.6.6 * Updates the crate version * Adds a CHANGELOG file --------- Co-authored-by: Mahesh Bandara Wijerathna <[email protected]>
- Loading branch information
1 parent
e9c1ea6
commit b5858a6
Showing
5 changed files
with
88 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.7.0] - 2024-06-01 | ||
|
||
### Changed | ||
|
||
- [PR #13] Adds support for per-item file options by the `create_from_directory_with_options` method. This introduces a breaking change; instead of passing a `FileOptions` directly an `Fn` must be specified that is called for each file, and must return a `FileOptions` value. | ||
- Upgraded the zip dependency to version 0.6.6. | ||
|
||
|
||
## [0.6.2] - 2023-09-03 | ||
|
||
### Changed | ||
|
||
- [PR #10] Upgraded the zip dependency to version 0.6.2 | ||
|
||
|
||
## [0.6.1] - 2021-07-30 | ||
|
||
### Fixed | ||
|
||
- [PR #6] Fixes formatting and linter warnings | ||
|
||
|
||
## [0.6.0] - 2020-11-30 | ||
|
||
### Changed | ||
|
||
- [PR #4] Pass through Zip and IO errors (replaces all instances of `unwrap()`) | ||
- [PR #4] Adds tests; extends the `try_is_zip` method so that it can detect different archive formats | ||
|
||
|
||
## [0.5.0] - 2020-07-24 | ||
|
||
### Fixed | ||
|
||
- [PR #1] Fixes a bug in the `create_from_directory_with_options` method that could cause files not entirely written to disk; use `write_all` instead of `write`. | ||
|
||
|
||
## [0.4.0] - 2020-03-25 | ||
|
||
### Added | ||
|
||
- New archive extraction traits `extract`, `extract_file`, and `extract_file_to_memory` | ||
- New entry query traits `entry_path` and `file_number` | ||
- New archive writer traits `create_from_directory` and `create_from_directory_with_options` | ||
- Helper function that can perform all operations base on a given archive file path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "zip-extensions" | ||
version = "0.6.2" | ||
version = "0.7.0" | ||
authors = ["Matthias Friedrich <[email protected]>"] | ||
edition = "2021" | ||
description = "An extension crate for zip." | ||
|
@@ -15,4 +15,4 @@ exclude = [ | |
] | ||
|
||
[dependencies] | ||
zip = "0.6.2" | ||
zip = "0.6.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters