Skip to content

chore(deps): bump hmac to 0.13.0 and sha2 to 0.11.0#33

Open
mendral-app[bot] wants to merge 4 commits into
mainfrom
mendral/deps/hmac-0.13.0-sha2-0.11.0
Open

chore(deps): bump hmac to 0.13.0 and sha2 to 0.11.0#33
mendral-app[bot] wants to merge 4 commits into
mainfrom
mendral/deps/hmac-0.13.0-sha2-0.11.0

Conversation

@mendral-app

@mendral-app mendral-app Bot commented Jul 6, 2026

Copy link
Copy Markdown

⚠️ Reviewer attention

These are 0.x minor version bumps (semver-breaking for pre-1.0 crates) in the RustCrypto ecosystem:

  • hmac 0.12.1 → 0.13.0: Hmac<D> changed from type alias to newtype; depends on digest 0.11
  • sha2 0.10.9 → 0.11.0: Sha256 changed from type alias to newtype; depends on digest 0.11

What we use: Basic Mac trait operations for GitHub webhook signature verification (new_from_slice, update, verify_slice, finalize().into_bytes()).

Behavioral risk: The MAC operations should behave identically. The Mac trait in 0.13 extends KeyInit and still provides new_from_slice. The verify_slice and finalize methods remain unchanged in behavior.

What couldn't be verified locally: Full compilation and test execution — relying on CI.

Suggested manual checks: Verify webhook signature validation still works end-to-end after merge.

Packages bumped

Package Old New Published
hmac 0.12.1 0.13.0 2026-03-29
sha2 0.10.9 0.11.0 2026-03-25
Per-package changelog details

hmac 0.12.1 → 0.13.0

  • Hmac<D> changed from type alias to newtype struct
  • Upgraded to digest v0.11 (trait reorganization)
  • Removed std and reset features
  • Added HmacReset<D> type for reset capability
  • Impact: Our usage is new_from_slice + update + verify_slice/finalize — the Mac trait still exposes all of these.

sha2 0.10.9 → 0.11.0

  • Sha256 changed from type alias to newtype struct
  • Upgraded to digest v0.11
  • Removed asm, compress, std features (we don't use any)
  • MSRV bumped to 1.85 (we use 1.93.1)
  • Impact: Sha256 is only used as a type parameter to Hmac<Sha256> — no direct method calls on it.

Files modified

  • Cargo.toml
  • Cargo.lock
  • .github/workflows/ci.yml (SHA-pinning for new repo policy)

Note

Created by Mendral. Tag @mendral-app with feedback or questions.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploying pratrol with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc46efd
Status: ✅  Deploy successful!
Preview URL: https://10e209f9.pratrol.pages.dev
Branch Preview URL: https://mendral-deps-hmac-0-13-0-sha.pratrol.pages.dev

View logs

mendral-app Bot added 2 commits July 6, 2026 02:37
In hmac 0.13, new_from_slice moved from Mac to KeyInit trait.
@mendral-app mendral-app Bot marked this pull request as ready for review July 6, 2026 09:41
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.

0 participants