Update Rust crate zip to v2 #191

Merged
pierre merged 1 commits from renovate/zip-2.x into master 2024-05-28 19:30:47 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
zip dependencies major 1.2.3 -> 2.0.0

Release Notes

zip-rs/zip2 (zip)

v2.0.0

Compare Source

🚀 Features
  • Add fmt::Display for DateTime
  • Implement more traits for DateTime
🚜 Refactor
  • Change type of last_modified_time to Option<DateTime>
  • **breaking**] Rename `from_msdos` to `from_msdos_unchecked`, make it unsafe, and add `try_from_msdos` ([#&#8203;145](https://github.com/zip-rs/zip2/pull/145))
    
    
⚙️ Miscellaneous Tasks
  • Continue to accept archives with invalid DateTime, and use now_utc() as default only when writing, not reading

v1.3.1

Compare Source

🚜 Refactor
  • Make deflate enable both default implementations
  • Merge the hidden deflate-flate2 flag into the public one
  • Rename _deflate-non-zopfli to _deflate-flate2
  • Reject encrypted and using_data_descriptor files slightly faster in read_zipfile_from_stream
  • Convert impl TryInto<NaiveDateTime> for DateTime to impl TryFrom<DateTime> for NaiveDateTime (#​136)
Performance
  • Change default compression implementation to flate2/zlib-ng
⚙️ Miscellaneous Tasks
  • chore(#​132): Attribution for some copied test data
  • chore(#​133): chmod -x src/result.rs

v1.3.0

Compare Source

🚀 Features
  • Add is_symlink method
🐛 Bug Fixes
  • Extract symlinks into symlinks on Unix and Windows, and fix a bug that affected making directories writable on MacOS
🚜 Refactor
  • Eliminate deprecation warning when --all-features implicitly enables the deprecated feature
  • Check if archive contains a symlink's target, without borrowing both at the same time
  • Eliminate a clone that's no longer necessary
  • is_dir only needs to look at the filename
  • Remove unnecessary #[cfg] attributes
⚙️ Miscellaneous Tasks
  • Fix borrow-of-moved-value
  • Box doesn't directly convert to PathBuf, so convert back to String first
  • partial revert - only &str has chars(), but Box should auto-deref
  • contains_key needs a Box<str>, so generify is_dir to accept one
  • Add missing ZipFileData::is_dir() method
  • Fix another Windows-specific error
  • More bug fixes for Windows-specific symlink code
  • More bug fixes for Windows-specific symlink code
  • Bug fix: variable name change
  • Bug fix: need both internal and output path to determine whether to symlink_dir
  • Another bug fix
  • Fix another error-type conversion error
  • Fix error-type conversion on Windows
  • Fix conditionally-unused import
  • Fix continued issues, and factor out the Vec-to-OsString conversion (cc: #​125)
  • Fix CI failure involving conversion to OsString for symlinks (see my comments on #​125)
  • Move path join into platform-independent code

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [zip](https://github.com/zip-rs/zip2) | dependencies | major | `1.2.3` -> `2.0.0` | --- ### Release Notes <details> <summary>zip-rs/zip2 (zip)</summary> ### [`v2.0.0`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#200---2024-05-24) [Compare Source](https://github.com/zip-rs/zip2/compare/v1.3.1...v2.0.0) ##### <!-- 0 -->🚀 Features - Add `fmt::Display` for `DateTime` - Implement more traits for `DateTime` ##### <!-- 2 -->🚜 Refactor - Change type of `last_modified_time` to `Option<DateTime>` - \[**breaking**] Rename `from_msdos` to `from_msdos_unchecked`, make it unsafe, and add `try_from_msdos` ([#&#8203;145](https://github.com/zip-rs/zip2/pull/145)) ##### <!-- 7 -->⚙️ Miscellaneous Tasks - Continue to accept archives with invalid DateTime, and use `now_utc()` as default only when writing, not reading ### [`v1.3.1`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#131---2024-05-21) [Compare Source](https://github.com/zip-rs/zip2/compare/v1.3.0...v1.3.1) ##### <!-- 2 -->🚜 Refactor - Make `deflate` enable both default implementations - Merge the hidden deflate-flate2 flag into the public one - Rename \_deflate-non-zopfli to \_deflate-flate2 - Reject encrypted and using_data_descriptor files slightly faster in read_zipfile_from_stream - Convert `impl TryInto<NaiveDateTime> for DateTime` to `impl TryFrom<DateTime> for NaiveDateTime` ([#&#8203;136](https://github.com/zip-rs/zip2/pull/136)) ##### <!-- 4 -->⚡ Performance - Change default compression implementation to `flate2/zlib-ng` ##### <!-- 7 -->⚙️ Miscellaneous Tasks - chore([#&#8203;132](https://github.com/zip-rs/zip2/pull/132)): Attribution for some copied test data - chore([#&#8203;133](https://github.com/zip-rs/zip2/pull/133)): chmod -x src/result.rs ### [`v1.3.0`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#130---2024-05-17) [Compare Source](https://github.com/zip-rs/zip2/compare/v1.2.3...v1.3.0) ##### <!-- 0 -->🚀 Features - Add `is_symlink` method ##### <!-- 1 -->🐛 Bug Fixes - Extract symlinks into symlinks on Unix and Windows, and fix a bug that affected making directories writable on MacOS ##### <!-- 2 -->🚜 Refactor - Eliminate deprecation warning when `--all-features` implicitly enables the deprecated feature - Check if archive contains a symlink's target, without borrowing both at the same time - Eliminate a clone that's no longer necessary - is_dir only needs to look at the filename - Remove unnecessary #\[cfg] attributes ##### <!-- 7 -->⚙️ Miscellaneous Tasks - Fix borrow-of-moved-value - Box<str> doesn't directly convert to PathBuf, so convert back to String first - partial revert - only \&str has chars(), but Box<str> should auto-deref - contains_key needs a `Box<str>`, so generify `is_dir` to accept one - Add missing `ZipFileData::is_dir()` method - Fix another Windows-specific error - More bug fixes for Windows-specific symlink code - More bug fixes for Windows-specific symlink code - Bug fix: variable name change - Bug fix: need both internal and output path to determine whether to symlink_dir - Another bug fix - Fix another error-type conversion error - Fix error-type conversion on Windows - Fix conditionally-unused import - Fix continued issues, and factor out the Vec<u8>-to-OsString conversion (cc: [#&#8203;125](https://github.com/zip-rs/zip2/pull/125)) - Fix CI failure involving conversion to OsString for symlinks (see my comments on [#&#8203;125](https://github.com/zip-rs/zip2/pull/125)) - Move path join into platform-independent code </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuNCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
pierre added 1 commit 2024-05-25 00:24:57 +00:00
Update Rust crate zip to v2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
560a72944b
Author
Owner

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

### Edited/Blocked Notification Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠️ **Warning**: custom changes will be lost.
pierre merged commit cc4c3ea67e into master 2024-05-28 19:30:47 +00:00
pierre deleted branch renovate/zip-2.x 2024-05-28 19:30:47 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pierre/GeneIT#191
No description provided.