Skip to content

build(deps): Bump sha2 from 0.10.9 to 0.11.0 - #10

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sha2-0.11.0
Open

build(deps): Bump sha2 from 0.10.9 to 0.11.0#10
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sha2-0.11.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown

Bumps sha2 from 0.10.9 to 0.11.0.

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 24, 2026

@praxis-bot praxis-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependabot Review

CI is failing. The sha2 0.10 to 0.11 bump is a breaking change from the RustCrypto ecosystem's migration from generic-array to hybrid-array. The digest output type changed from GenericArray<u8, ...> to hybrid_array::Array<u8, ...>, which does not implement LowerHex. All uses of format!("{:x}", hash) or similar hex formatting on digest outputs will fail to compile.

This needs code changes to adapt to the new API. Typical fix: call .as_slice() on the digest output and use a hex-encoding helper, or enable the oid feature and use the new API surface.

Four CI jobs are failing: MSRV, Clippy, Test, and Documentation.

Comment thread Cargo.toml
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
serde_yaml = "0.9"
sha2 = "0.10"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking upgrade. The sha2 0.11 crate is part of the RustCrypto digest 0.11 ecosystem which replaced generic-array with hybrid-array. The new Array<u8, ...> output type does not implement LowerHex, so all hex-formatting of digest results (format!("{:x}", ...)) fails to compile. Code changes are needed to adapt to the new API.

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 force-pushed the dependabot/cargo/sha2-0.11.0 branch from cbf6e75 to c18ec23 Compare August 26, 2026 21:02
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.

1 participant