Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/benchmarks-mv/patches/b80a2e0f3c4d2a31 # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## build(deps): bump sha2 from 0.10.9 to 0.11.1 in /prime-drag-race merged `b80a2e0f3c4d2a31` #69 · opened 2026-11-02 01:28 UTC · closed 2026-11-06 13:05 UTC · merged 2026-11-06 13:05 UTC Imported from GitHub aien-dev/benchmarks-mv#69, by dependabot[bot] Labels: dependencies, rust Base `ebc1946fb3dba446e98ce95c85d049e45c5c3e2a` · Head `c5125f4c90b0b843185b4d233778c3d02943bf09` Merged on GitHub as `70a318e192a6a4c2914e0eef89201a39dd71408c`; reachable from main `0f2940ae58a1d7d5be7474c3712c81f35b9c846b` (observed 2026-11-18T16:40:16Z) dependabot[bot] wrote on 2026-11-02 01:28 UTC Bumps sha2 from 0.10.9 to 0.11.1.
Commits

Dependabot compatibility score Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
### Apply it ``` git checkout -b patch-b80a2e0f3c4d2a31 ebc1946fb3dba446e98ce95c85d049e45c5c3e2a curl -fsSL https://interplane.io/drakestapleton/benchmarks-mv/patches/b80a2e0f3c4d2a31.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/benchmarks-mv 69 c5125f4c90b0b843185b4d233778c3d02943bf09 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"benchmarks-mv","number":69,"url":"https://github.com/aien-dev/benchmarks-mv/pull/69","export_sha256":"1bf8ad65a256eabf8c422ddba2690b5f089c7d332b45da090169f568e7b90191","imported_utc":"2026-11-18T16:40:16Z"} ``` ### Changes ``` diff --git a/prime-drag-race/Cargo.lock b/prime-drag-race/Cargo.lock index 1662683..4c64791 100644 --- a/prime-drag-race/Cargo.lock +++ b/prime-drag-race/Cargo.lock @@ -69,11 +69,11 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] name = "block-buffer" -version = "0.10.4" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" dependencies = [ - "generic-array", + "hybrid-array", ] [[package]] @@ -157,6 +157,12 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + [[package]] name = "core-foundation-sys" version = "0.8.7" @@ -165,30 +171,30 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "cpufeatures" -version = "0.2.17" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" dependencies = [ "libc", ] [[package]] name = "crypto-common" -version = "0.1.7" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" dependencies = [ - "generic-array", - "typenum", + "hybrid-array", ] [[package]] name = "digest" -version = "0.10.7" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" dependencies = [ "block-buffer", + "const-oid", "crypto-common", ] @@ -222,22 +228,21 @@ dependencies = [ "slab", ] -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - [[package]] name = "heck" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" +[[package]] +name = "hybrid-array" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17" +dependencies = [ + "typenum", +] + [[package]] name = "iana-time-zone" version = "0.1.65" @@ -408,9 +413,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.9" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19" dependencies = [ "cfg-if", "cpufeatures", @@ -475,12 +480,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - [[package]] name = "wasm-bindgen" version = "0.2.128" diff --git a/prime-drag-race/Cargo.toml b/prime-drag-race/Cargo.toml index a6949f3..7c57cd4 100644 --- a/prime-drag-race/Cargo.toml +++ b/prime-drag-race/Cargo.toml @@ -20,6 +20,6 @@ path = "src/main.rs" [dependencies] serde_json = "1.0" -sha2 = "0.10" +sha2 = "0.11" chrono = "0.4" clap = { version = "4.5", features = ["derive"] } diff --git a/prime-drag-race/src/lib.rs b/prime-drag-race/src/lib.rs index f5a2791..1f829a3 100644 --- a/prime-drag-race/src/lib.rs +++ b/prime-drag-race/src/lib.rs @@ -15,7 +15,8 @@ //! AIEN Prime Drag Race suite runner. See CONTRACT.md next to this crate. //! -//! Std plus serde_json, sha2, chrono and clap (all already in the parent Cargo.lock). +//! Std plus serde_json, sha2, chrono and clap. This crate keeps its own Cargo.lock; its versions +//! can differ from the parent's. pub mod exec; pub mod receipt; diff --git a/prime-drag-race/src/receipt.rs b/prime-drag-race/src/receipt.rs index 67e1252..8f1bea3 100644 --- a/prime-drag-race/src/receipt.rs +++ b/prime-drag-race/src/receipt.rs @@ -22,8 +22,17 @@ use std::os::unix::fs::OpenOptionsExt; use std::path::{Path, PathBuf}; use std::process::Command; +/// Lowercase hex of the SHA-256 digest. sha2 0.11 returns a `hybrid_array::Array`, which has no +/// `LowerHex` impl, so the digest is encoded here. pub fn sha256_hex(bytes: &[u8]) -> String { - format!("{:x}", Sha256::digest(bytes)) + const HEX: &[u8; 16] = b"0123456789abcdef"; + let digest = Sha256::digest(bytes); + let mut out = String::with_capacity(2 * digest.len()); + for &b in digest.iter() { + out.push(HEX[usize::from(b >> 4)] as char); + out.push(HEX[usize::from(b & 0x0f)] as char); + } + out } pub fn sha256_file(path: &Path) -> io::Result { @@ -193,6 +202,19 @@ mod tests { assert!((s.stddev - 1.2909944487358056).abs() < 1e-12); } + #[test] + fn sha256_hex_known_answers() { + // FIPS 180-2 examples; receipt and blob names depend on this exact lowercase form. + assert_eq!( + sha256_hex(b""), + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + ); + assert_eq!( + sha256_hex(b"abc"), + "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" + ); + } + #[test] fn evidence_dir_inside_checkout_refused() { let inside = Path::new(env!("CARGO_MANIFEST_DIR")).join("evidence-x"); ```