Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump zip from 0.6.6 to 1.1.4 #9

Merged
merged 5 commits into from
Jul 17, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 16, 2024

Bumps zip from 0.6.6 to 1.1.4.

Release notes

Sourced from zip's releases.

v1.1.4

🐛 Bug Fixes

  • Rare bug where find_and_parse would give up prematurely on detecting a false end-of-CDR header

v1.1.3

🐛 Bug Fixes

  • Alignment was previously handled incorrectly (#33)

🚜 Refactor

  • deprecate deflate-miniz feature since it's now equivalent to deflate (#35)

v1.1.2

Added

  • index_for_name, index_for_path, name_for_index: get the index of a file given its path or vice-versa, without initializing metadata from the local-file header or needing to mutably borrow the ZipArchive.
  • add_symlink_from_path, shallow_copy_file_from_path, deep_copy_file_from_path, raw_copy_file_to_path: copy a file or create a symlink using AsRef<Path> arguments

Changed

  • add_directory_from_path and start_file_from_path are no longer deprecated, and they now normalize .. as well as ..
Changelog

Sourced from zip's changelog.

1.1.4 - 2024-05-04

🐛 Bug Fixes

  • Build was failing with bzip2 enabled
  • use is_dir in more places where Windows paths might be handled incorrectly

⚡ Performance

  • Quick filter for paths that contain "/../" or "/./" or start with "./" or "../"
  • Fast handling for separator-free paths
  • Speed up logic if main separator isn't '/'
  • Drop normalized_components slightly sooner when not using it
  • Speed up path_to_string in cases where the path is already in the proper format

⚙️ Miscellaneous Tasks

  • Refactor: can short-circuit handling of paths that start with MAIN_SEPARATOR, no matter what MAIN_SEPARATOR is
  • Bug fix: non-canonical path detection when MAIN_SEPARATOR is not slash or occurs twice in a row
  • Bug fix: must recreate if . or .. is a path element
  • Bug fix

◀️ Revert

  • #58 (partial): bzip2-rs can't replace bzip2 because it's decompress-only

1.1.3 - 2024-04-30

🐛 Bug Fixes

  • Rare bug where find_and_parse would give up prematurely on detecting a false end-of-CDR header

1.1.2 - 2024-04-28

🐛 Bug Fixes

  • Alignment was previously handled incorrectly (#33)

🚜 Refactor

  • deprecate deflate-miniz feature since it's now equivalent to deflate (#35)

[1.1.1]

Added

  • index_for_name, index_for_path, name_for_index: get the index of a file given its path or vice-versa, without initializing metadata from the local-file header or needing to mutably borrow the ZipArchive.
  • add_symlink_from_path, shallow_copy_file_from_path, deep_copy_file_from_path, raw_copy_file_to_path: copy a file or create a symlink using AsRef<Path> arguments

Changed

  • add_directory_from_path and start_file_from_path are no longer deprecated, and they now normalize .. as well as ..

[1.1.0]

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [zip](https://github.com/zip-rs/zip2) from 0.6.6 to 1.1.4.
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zip-rs/zip2/commits/v1.1.4)

---
updated-dependencies:
- dependency-name: zip
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 16, 2024
src/main.rs Outdated
@@ -26,7 +26,7 @@
fn zip_dir<T>(it: &mut dyn Iterator<Item=DirEntry>, prefix: &str, writer: T) -> zip::result::ZipResult<()>
where T: Write + Seek {
let mut zip = zip::ZipWriter::new(writer);
let options = FileOptions::default()
let options: FileOptions<_> = FileOptions::default()

Check failure

Code scanning / clippy

type annotations needed Error

type annotations needed
src/main.rs Outdated
@@ -38,7 +38,7 @@
if path.is_file() {
println!("adding file {:?} as {:?} ...", path, name);
// zip.start_file_from_path(name, options)?;
zip.start_file(name.to_string_lossy(), options)?;
zip.start_file::<Cow<'_, str>, T>(name.to_string_lossy(), options)?;

Check failure

Code scanning / clippy

cannot find type Cow in this scope Error

cannot find type Cow in this scope
src/main.rs Outdated
@@ -38,7 +38,7 @@
if path.is_file() {
println!("adding file {:?} as {:?} ...", path, name);
// zip.start_file_from_path(name, options)?;
zip.start_file(name.to_string_lossy(), options)?;
zip.start_file::<Cow<'_, str>, T>(name.to_string_lossy(), options)?;

Check failure

Code scanning / clippy

the trait bound T: zip::write::FileOptionExtension is not satisfied Error

the trait bound T: zip::write::FileOptionExtension is not satisfied
src/main.rs Outdated
@@ -38,7 +38,7 @@
if path.is_file() {
println!("adding file {:?} as {:?} ...", path, name);
// zip.start_file_from_path(name, options)?;
zip.start_file(name.to_string_lossy(), options)?;
zip.start_file::<Cow<'_, str>, T>(name.to_string_lossy(), options)?;

Check failure

Code scanning / clippy

the trait bound T: zip::write::FileOptionExtension is not satisfied Error

the trait bound T: zip::write::FileOptionExtension is not satisfied
src/main.rs Outdated
@@ -38,7 +38,7 @@
if path.is_file() {
println!("adding file {:?} as {:?} ...", path, name);
// zip.start_file_from_path(name, options)?;
zip.start_file(name.to_string_lossy(), options)?;
zip.start_file::<Cow<'_, str>, Box<dyn FileOptionExtension>>(name.to_string_lossy(), options)?;

Check failure

Code scanning / clippy

cannot find type Cow in this scope Error

cannot find type Cow in this scope
src/main.rs Outdated
@@ -38,7 +38,7 @@
if path.is_file() {
println!("adding file {:?} as {:?} ...", path, name);
// zip.start_file_from_path(name, options)?;
zip.start_file(name.to_string_lossy(), options)?;
zip.start_file::<Cow<'_, str>, Box<dyn FileOptionExtension>>(name.to_string_lossy(), options)?;

Check failure

Code scanning / clippy

the trait bound std::boxed::Box<dyn zip::write::FileOptionExtension>: zip::write::FileOptionExtension is not satisfied Error

the trait bound std::boxed::Box<dyn zip::write::FileOptionExtension>: zip::write::FileOptionExtension is not satisfied
src/main.rs Outdated
@@ -38,7 +38,7 @@
if path.is_file() {
println!("adding file {:?} as {:?} ...", path, name);
// zip.start_file_from_path(name, options)?;
zip.start_file(name.to_string_lossy(), options)?;
zip.start_file::<Cow<'_, str>, Box<dyn FileOptionExtension>>(name.to_string_lossy(), options)?;

Check failure

Code scanning / clippy

the trait bound std::boxed::Box<dyn zip::write::FileOptionExtension>: zip::write::FileOptionExtension is not satisfied Error

the trait bound std::boxed::Box<dyn zip::write::FileOptionExtension>: zip::write::FileOptionExtension is not satisfied
src/main.rs Outdated
@@ -38,7 +38,7 @@
if path.is_file() {
println!("adding file {:?} as {:?} ...", path, name);
// zip.start_file_from_path(name, options)?;
zip.start_file(name.to_string_lossy(), options)?;
zip.start_file::<Cow<'_, str>, Box<dyn FileOptionExtension>>(name.to_string_lossy(), options)?;

Check failure

Code scanning / clippy

the trait zip::write::FileOptionExtension cannot be made into an object Error

the trait zip::write::FileOptionExtension cannot be made into an object
@liulyxandy-codemao liulyxandy-codemao marked this pull request as draft July 16, 2024 16:21
@liulyxandy-codemao liulyxandy-codemao self-requested a review July 16, 2024 16:21
@liulyxandy-codemao liulyxandy-codemao self-assigned this Jul 16, 2024
@liulyxandy-codemao liulyxandy-codemao added blocked Something goes wrong do not merge Don't merge this PR labels Jul 16, 2024
@liulyxandy-codemao liulyxandy-codemao removed blocked Something goes wrong do not merge Don't merge this PR labels Jul 17, 2024
@liulyxandy-codemao liulyxandy-codemao marked this pull request as ready for review July 17, 2024 04:21
@liulyxandy-codemao liulyxandy-codemao merged commit 663cde8 into main Jul 17, 2024
6 checks passed
@dependabot dependabot bot deleted the dependabot/cargo/zip-1.1.4 branch July 17, 2024 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant