Skip to content

Commit 6d499b9

Browse files
Update Rust crate sha2 to 0.11 (#7553)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [sha2](https://redirect.github.com/RustCrypto/hashes) | workspace.dependencies | minor | `0.10` → `0.11` | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/357) for more information. --- ### Release Notes <details> <summary>RustCrypto/hashes (sha2)</summary> ### [`v0.11.0`](https://redirect.github.com/RustCrypto/hashes/compare/sha2-v0.10.9...sha2-v0.11.0) [Compare Source](https://redirect.github.com/RustCrypto/hashes/compare/sha2-v0.10.9...sha2-v0.11.0) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Between 12:00 AM and 03:59 AM, only on Monday (`* 0-3 * * 1`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vortex-data/vortex). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMjMuOCIsInVwZGF0ZWRJblZlciI6IjQzLjEyMy44IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJjaGFuZ2Vsb2cvY2hvcmUiXX0=--> --------- Signed-off-by: Robert Kruszewski <github@robertk.io> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Kruszewski <github@robertk.io>
1 parent e8d64af commit 6d499b9

4 files changed

Lines changed: 82 additions & 17 deletions

File tree

Cargo.lock

Lines changed: 77 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ async-fs = "2.2.0"
105105
async-lock = "3.4"
106106
async-stream = "0.3.6"
107107
async-trait = "0.1.89"
108+
base16ct = "1.0.0"
108109
bigdecimal = "0.4.8"
109110
bindgen = "0.72.0"
110111
bit-vec = "0.9.0"
@@ -223,7 +224,7 @@ rustc-hash = "2.1"
223224
serde = "1.0.220"
224225
serde_json = "1.0.138"
225226
serde_test = "1.0.176"
226-
sha2 = "0.10"
227+
sha2 = "0.11.0"
227228
simdutf8 = "0.1.5"
228229
similar = "2.7.0"
229230
sketches-ddsketch = "0.4.0"

vortex-test/compat-gen/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ tokio = { workspace = true, features = ["full"] }
4545
reqwest = { workspace = true }
4646

4747
# CLI + serialization
48+
base16ct = { workspace = true }
4849
clap = { workspace = true, features = ["derive"] }
4950
serde = { workspace = true, features = ["derive"] }
5051
serde_json = { workspace = true }

vortex-test/compat-gen/src/generate.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
use std::path::Path;
55

6+
use base16ct::HexDisplay;
67
use serde::Serialize;
78
use sha2::Digest;
89
use sha2::Sha256;
@@ -50,7 +51,7 @@ pub fn write_fixtures(output_dir: &Path, exclude: &[String]) -> VortexResult<Vec
5051
let path = output_dir.join(&entry.name);
5152
let file_bytes = std::fs::read(&path)
5253
.map_err(|e| vortex_err!("failed to read back {}: {e}", path.display()))?;
53-
let sha256 = format!("{:x}", Sha256::digest(&file_bytes));
54+
let sha256 = format!("{:x}", HexDisplay(&Sha256::digest(&file_bytes)));
5455
eprintln!(" wrote {}", entry.name);
5556
infos.push(FixtureInfo {
5657
name: entry.name,

0 commit comments

Comments
 (0)