Repository navigation
build(deps): bump hmac from 0.12.1 to 0.13.0 - #10
Merged
Merged
Conversation
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
Bot
force-pushed
the
dependabot/cargo/hmac-0.13.0
branch
from
October 28, 2026 11:18
0a30c28 to
5546f18
Compare
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 确认。
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.
Bumps hmac from 0.12.1 to 0.13.0.
Commits
0236c8ehmac v0.13.0 (#263)b895e50Migrate tests to the new blobby format (#264)3d1440bWorkspace-level lint configuration (#261)11d4f36hmac: use release versions ofdev-dependencies(#260)c40b82bhmac: bumpsha2dev-dependency to v0.11 (#259)1fa0781Cut rc.5 prereleases (#258)a008265hmac v0.13.0-rc.6 (#256)da485cdUse(Reset)MacTraits(#254)2c51e3bhmac: deriveCloneinstead of relying on(Reset)MacTraits(#253)669d805RelaxClonebounds (#250)