Repository navigation
chore(deps): update rust crate blake2 to 0.11 - #12
cachekit-renovate-bot[bot] wants to merge 1 commit into
Conversation
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
Kody Code Review — 1 suggested fix. 🛠️ Open Agent Prompt |
|
|
||
| [dependencies] | ||
| blake2 = "0.10" | ||
| blake2 = "0.11" |
There was a problem hiding this comment.
Build break in Cargo.toml: bumping blake2 to 0.11 pulls in digest 0.11, which moves new_from_slice from the Mac trait to KeyInit, but src/keys.rs:11-12 still imports only blake2::digest::Mac while src/keys.rs:173 calls Blake2bMac::<U32>::new_from_slice(&self.0). When the crate builds against 0.11, new_from_slice fails to resolve and compilation stops; if 0.11 also rejects the 32-byte key, the unreachable! at src/keys.rs:174 panics on every value_key call. Fix: import blake2::digest::KeyInit alongside Mac, confirm that cargo build and the key-derivation tests pass with 0.11, or keep the dependency at 0.10.
blake2 = "0.11"
# and in src/keys.rs:
# use blake2::digest::{consts::U32, KeyInit, Mac};Prompt for LLM
File Cargo.toml:
Line 30:
Build break in Cargo.toml: bumping blake2 to 0.11 pulls in digest 0.11, which moves `new_from_slice` from the `Mac` trait to `KeyInit`, but src/keys.rs:11-12 still imports only `blake2::digest::Mac` while src/keys.rs:173 calls `Blake2bMac::<U32>::new_from_slice(&self.0)`. When the crate builds against 0.11, `new_from_slice` fails to resolve and compilation stops; if 0.11 also rejects the 32-byte key, the `unreachable!` at src/keys.rs:174 panics on every value_key call. Fix: import `blake2::digest::KeyInit` alongside `Mac`, confirm that `cargo build` and the key-derivation tests pass with 0.11, or keep the dependency at 0.10.
Suggested Code:
blake2 = "0.11"
# and in src/keys.rs:
# use blake2::digest::{consts::U32, KeyInit, Mac};
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
This PR contains the following updates:
0.10→0.11Release Notes
RustCrypto/hashes (blake2)
v0.11.0Compare Source
Configuration
📅 Schedule: (in timezone Australia/Sydney)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.