Skip to content

chore(deps): bump sha2 0.10 → 0.11 (supersedes #364) - #377

Merged
ajianaz merged 1 commit into
developfrom
chore/bump-sha2-0.11
Jun 17, 2026
Merged

ajianaz merged 1 commit into
developfrom
chore/bump-sha2-0.11

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Supersedes Dependabot PR #364, which bumped sha2 in uteke-core from 0.10 to 0.11 but sat BLOCKED because sha2 0.11 dropped the LowerHex impl on the digest output. The failing line was:

let actual = format!("{:x}", hasher.finalize());  // engine.rs:270

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: replace format!("{:x}", hasher.finalize()) with manual per-byte {:02x} formatting. sha2 0.11 returns Array<u8, _> which has no LowerHex impl.
  • Cargo.lock: regenerated.
  • Side benefit: unifies the workspace on a single sha2 version. uteke-server was already on 0.11; now uteke-core matches.

Verification

  • cargo build --workspace — clean
  • cargo test --workspace — 217 pass (188 core + 29 CLI), 0 fail
  • cargo clippy --workspace --all-targets -- -D warnings — clean
  • cargo fmt --all -- --check — clean

Closes

Closes #364 (Dependabot PR, superseded).

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).
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit ac78803 into develop Jun 17, 2026
8 checks passed
@ajianaz
ajianaz deleted the chore/bump-sha2-0.11 branch June 17, 2026 07:56
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant