Repository navigation
chore(deps): bump sha2 0.10 → 0.11 (supersedes #364) - #377
Merged
Merged
Conversation
Dependabot PR #364 bumped sha2 in uteke-core from 0.10 to 0.11 but CI failed across Build/Check/Clippy/Test because sha2 0.11 dropped the LowerHex impl on the digest output Array. The line let actual = format!("{:x}", hasher.finalize()); no longer compiles. Dependabot doesn't fix code, so the PR sat BLOCKED. This commit applies the bump and fixes the breakage: - crates/uteke-core/Cargo.toml: sha2 = "0.11" - crates/uteke-core/src/embed/engine.rs: iterate the digest bytes and format each as {:02x} manually instead of relying on LowerHex. Also unifies the workspace on a single sha2 version (uteke-server was already on 0.11 from an earlier bump — now both match). 188 tests pass. Clippy clean. fmt clean. Closes #364 (Dependabot PR, superseded).
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
Dependabot PR #364 bumped sha2 in uteke-core from 0.10 to 0.11 but CI failed across Build/Check/Clippy/Test because sha2 0.11 dropped the LowerHex impl on the digest output Array. The line let actual = format!("{:x}", hasher.finalize()); no longer compiles. Dependabot doesn't fix code, so the PR sat BLOCKED. This commit applies the bump and fixes the breakage: - crates/uteke-core/Cargo.toml: sha2 = "0.11" - crates/uteke-core/src/embed/engine.rs: iterate the digest bytes and format each as {:02x} manually instead of relying on LowerHex. Also unifies the workspace on a single sha2 version (uteke-server was already on 0.11 from an earlier bump — now both match). 188 tests pass. Clippy clean. fmt clean. Closes #364 (Dependabot PR, superseded).
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Supersedes Dependabot PR #364, which bumped
sha2inuteke-corefrom 0.10 to 0.11 but sat BLOCKED because sha2 0.11 dropped theLowerHeximpl on the digest output. The failing line was:Dependabot doesn't patch code, so this PR applies the bump + the compatibility fix.
Changes
crates/uteke-core/Cargo.toml:sha2 = "0.10"→"0.11"crates/uteke-core/src/embed/engine.rs: replaceformat!("{:x}", hasher.finalize())with manual per-byte{:02x}formatting. sha2 0.11 returnsArray<u8, _>which has noLowerHeximpl.Cargo.lock: regenerated.uteke-serverwas already on 0.11; nowuteke-corematches.Verification
cargo build --workspace— cleancargo test --workspace— 217 pass (188 core + 29 CLI), 0 failcargo clippy --workspace --all-targets -- -D warnings— cleancargo fmt --all -- --check— cleanCloses
Closes #364 (Dependabot PR, superseded).