Skip to content

chore(deps): bump sha2 from 0.10.9 to 0.11.0 - #8

Merged
MotherSphere merged 1 commit into
mainfrom
dependabot/cargo/sha2-0.11.0
Aug 25, 2026
Merged

chore(deps): bump sha2 from 0.10.9 to 0.11.0#8
MotherSphere merged 1 commit into
mainfrom
dependabot/cargo/sha2-0.11.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 20, 2026

Copy link
Copy Markdown
Contributor

Bumps sha2 from 0.10.9 to 0.11.0.

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 20, 2026
MotherSphere added a commit that referenced this pull request Aug 25, 2026
Dependabot #8 bumps sha2 0.10.9 to 0.11.0 and does not compile. 0.11 drops
`io::Write` on the hashers and returns an `Array` that no longer implements
`LowerHex`, so `std::io::copy(&mut f, &mut hasher)` and `format!("{:x}", …)`
both stop working — the two idioms every call site here used.

Reading in a loop and hex-encoding by hand compiles against 0.10 and 0.11
alike, so the bump becomes a version bump again rather than a migration hiding
inside one.

Three sites, not two. The CI build only showed cfc-cli/rules.rs and
cfc-daemon/process_resolve.rs; provenance.rs:1848 is `#[cfg(test)]` and only
appears under --all-targets. Merging #8 on the strength of a green `build` job
would have left the test suite uncompilable.

This is the code behind `--pin-hash`, which binds a rule to a binary's contents
rather than its path. A digest that changed would not fail loudly — the rule
would simply stop matching, and a firewall would quietly stop enforcing
something someone asked it to enforce. So it was checked rather than assumed:
cargo check clean under both 0.10 and 0.11, and the suite green under 0.10
including sha256_of_known_content, which asserts a fixed digest.
@MotherSphere

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/sha2-0.11.0 branch from 6b8b0fc to 315350c Compare August 25, 2026 14:10
@MotherSphere

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.10.9 to 0.11.0.
- [Commits](RustCrypto/hashes@sha2-v0.10.9...sha2-v0.11.0)

---
updated-dependencies:
- dependency-name: sha2
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/sha2-0.11.0 branch from 315350c to 2ca8a8e Compare August 25, 2026 14:43
@MotherSphere
MotherSphere merged commit e915f57 into main Aug 25, 2026
14 checks passed
@MotherSphere
MotherSphere deleted the dependabot/cargo/sha2-0.11.0 branch August 25, 2026 14:58
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