From a691a470e5c7eb046d0bf8624d3adabd69ebed68 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Tue, 2 Jun 2026 13:51:41 +0100 Subject: [PATCH] Pin blake3 to 1.8.2 in anchor test Cargo.lock to avoid edition2024 build failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `blake3 1.8.3` switched its manifest to Rust edition 2024 (stabilized in 1.85). `anchor build` invokes `cargo-build-sbf`, which uses the Anchor 0.32.1 / Solana platform-tools bundled Cargo at 1.84.0 — that Cargo cannot parse the new manifest and the test step fails on `Cargo.toml` resolution, well before any SBF compilation begins. The agave CLI version (`SOLANA_VERSION`) does not control the platform-tools toolchain, so an earlier attempt at bumping it (3.1.8 → 3.1.14) was a no-op for this failure and has been reverted. Pins `blake3` to `1.8.2` (the last edition-2021 release; same `^1` range, satisfies `solana-blake3-hasher`'s requirement) directly in `packages/dynamic-client/test/programs/anchor/Cargo.lock` via `cargo update -p blake3 --precise 1.8.2`. The resolver also reconciles `constant_time_eq` from 0.4.2 to 0.3.1 to match what blake3 1.8.2 wants and drops the `cpufeatures` dep blake3 1.8.3 added. No manifest changes — only the lockfile moves, so the pin doesn't follow into other workspaces and a future deliberate `cargo update` can move forward when the bundled toolchain has caught up. --- packages/dynamic-client/test/programs/anchor/Cargo.lock | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/dynamic-client/test/programs/anchor/Cargo.lock b/packages/dynamic-client/test/programs/anchor/Cargo.lock index a5403d6bb..2fc8e708b 100644 --- a/packages/dynamic-client/test/programs/anchor/Cargo.lock +++ b/packages/dynamic-client/test/programs/anchor/Cargo.lock @@ -337,16 +337,15 @@ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" [[package]] name = "blake3" -version = "1.8.3" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2468ef7d57b3fb7e16b576e8377cdbde2320c60e1491e961d11da40fc4f02a2d" +checksum = "3888aaa89e4b2a40fca9848e400f6a658a5a3978de7be858e209cafa8be9a4a0" dependencies = [ "arrayref", "arrayvec", "cc", "cfg-if", "constant_time_eq", - "cpufeatures", "digest 0.10.7", ] @@ -558,9 +557,9 @@ dependencies = [ [[package]] name = "constant_time_eq" -version = "0.4.2" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" [[package]] name = "cpufeatures"