Skip to content

chore(deps): bump sha2 from 0.10.9 to 0.11.0 in /src-tauri#23

Closed
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/cargo/src-tauri/sha2-0.11.0
Closed

chore(deps): bump sha2 from 0.10.9 to 0.11.0 in /src-tauri#23
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/cargo/src-tauri/sha2-0.11.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 7, 2026

Copy link
Copy Markdown
Contributor

Bumps sha2 from 0.10.9 to 0.11.0.

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 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 [sha2](https://github.com/RustCrypto/hashes) from 0.10.9 to 0.11.0.
- [Commits](RustCrypto/hashes@sha2-v0.10.9...sha2-v0.11.0)

---
updated-dependencies:
- dependency-name: sha2
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Jul 7, 2026
@paulpv

paulpv commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

@copilot build fails with

   Compiling tauri-plugin-opener v2.5.4
   Compiling keyring v2.3.3
error[E0277]: the trait bound `Sha256: std::io::Write` is not satisfied
  --> src/search/downloader.rs:11:30
   |
11 |     std::io::copy(&mut file, &mut hasher).map_err(|e| format!("Failed to read file for hash check: {}", e))?;
   |     -------------            ^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `Sha256`
   |     |
   |     required by a bound introduced by this call
   |
note: required by a bound in `std::io::copy`
  --> /rustc/31fca3adb283cc9dfd56b49cdee9a96eb9c96ffd/library/std/src/io/copy.rs:62:0

error[E0277]: the trait bound `Array<u8, UInt<UInt<UInt<UInt<..., ...>, ...>, ...>, ...>>: LowerHex` is not satisfied
  --> src/search/downloader.rs:12:32
   |
12 |     let hash = format!("{:x}", hasher.finalize());
   |                         ----   ^^^^^^^^^^^^^^^^^ the trait `LowerHex` is not implemented for `Array<u8, UInt<UInt<UInt<UInt<UInt<..., ...>, ...>, ...>, ...>, ...>>`
   |                         |
   |                         required by this formatting parameter
   |
   = help: the following other types implement trait `LowerHex`:
             &T
             &mut T
             ArrayBase<S, D>
             Braced
             GenericArray<u8, T>
             Hyphenated
             OpenFlags
             PrepFlags
           and 436 others
   = note: the full name for the type has been written to '/home/runner/work/Codeoba/Codeoba/src-tauri/target/aarch64-unknown-linux-gnu/release/deps/codeoba_lib.long-type-2668437387575664491.txt'
   = note: consider using `--verbose` to print the full type name to the console

For more information about this error, try `rustc --explain E0277`.
error: could not compile `codeoba` (lib) due to 2 previous errors
failed to build app: failed to build app
       Error [tauri_cli_node] failed to build app: failed to build app
Error: Process completed with exit code 1.

@paulpv

paulpv commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown

@copilot build fails with

   Compiling tauri-plugin-opener v2.5.4

...

Fixed in 2780a12. I updated src-tauri/src/search/downloader.rs to hash by reading file chunks with Read + Digest::update and then using hex::encode(hasher.finalize()), which is compatible with sha2 0.11 and resolves both reported compile errors.

Copilot finished work on behalf of paulpv July 8, 2026 00:33
Copilot AI requested a review from paulpv July 8, 2026 00:33
@paulpv

paulpv commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Copilot stopped work on behalf of paulpv due to an error July 8, 2026 01:11
Copilot stopped work on behalf of paulpv due to an error July 8, 2026 01:11
@dependabot @github

dependabot Bot commented on behalf of github Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot recreate.

@paulpv

paulpv commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Resolved by merging origin/main into this branch and fixing the conflicts in src-tauri/Cargo.lock and src-tauri/src/search/downloader.rs in commit 8e19c83.

Copilot finished work on behalf of paulpv July 8, 2026 04:30
@paulpv paulpv closed this Jul 9, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/cargo/src-tauri/sha2-0.11.0 branch July 9, 2026 09:08
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 rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants