Skip to content

build(deps): bump hmac from 0.12.1 to 0.13.0 - #10

Merged
daha1216 merged 3 commits into
masterfrom
dependabot/cargo/hmac-0.13.0
Oct 28, 2026
Merged

daha1216 merged 3 commits into
masterfrom
dependabot/cargo/hmac-0.13.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Bumps hmac from 0.12.1 to 0.13.0.

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Oct 27, 2026
Bumps [hmac](https://github.com/RustCrypto/MACs) from 0.12.1 to 0.13.0.
- [Commits](RustCrypto/MACs@hmac-v0.12.1...hmac-v0.13.0)

---
updated-dependencies:
- dependency-name: hmac
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
dependabot 只改版本号,编译失败两处:
- hmac 0.13 依赖 digest 0.11,而 sha2 0.10 依赖 digest 0.10,
  两个 digest 版本并存导致 Sha256 不满足 digest 0.11 的 CoreProxy /
  BlockSizeUser / FixedOutput 约束(E0277 四连)。
  把 sha2 同步升到 0.11 让两者落在同一个 digest 0.11 上。
- hmac 0.13 把 new_from_slice 从 Mac 移到 KeyInit trait,
  需要显式 use hmac::KeyInit 才可见(E0599)。

验证:cargo test --locked → 212 passed, 0 failed, 1 ignored。
代价:tauri-codegen 仍锁 sha2 0.10,锁文件因此有 523→533 个包(多一份
digest/crypto-common 及其依赖)。tauri 自身升级后会自然收敛。
sha2 0.11 把 Output 换成 hybrid-array 的 Array<u8, U32>,它没有 LowerHex
实现,所以 format!("{:x}", digest) 全部编译失败。macOS job 上暴露了 4 处
(src/macos/self_update.rs:162/580/619/678),本地 Windows 构建因为整个
src/macos 是 cfg(target_os = "macos") 看不到。

- update.rs 新增 pub fn hex_lower(&[u8]) -> String,按字节 {b:02x} 拼接。
- sha256_hex / sha256_of_file 改为复用它,消掉重复的 hex 拼接。
- macOS 侧 4 处 + credentials.rs:25 的 keychain account 一并改掉。

验证:cargo test --locked → 212 passed, 0 failed, 1 ignored。
macOS 侧交叉检查受限于本机无 objc2 构建环境,交由 CI 的 macos job 确认。
@daha1216
daha1216 merged commit 1967377 into master Oct 28, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/cargo/hmac-0.13.0 branch October 28, 2026 15:54
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