Skip to content

deps: Bump mollusk-svm to 0.17 - #16

Merged
joncinque merged 1 commit into
solana-program:mainfrom
clankmaxxing-clod:mollusk-0.17
Nov 20, 2026
Merged

joncinque merged 1 commit into
solana-program:mainfrom
clankmaxxing-clod:mollusk-0.17

Conversation

@clankmaxxing-clod

Copy link
Copy Markdown
Contributor

Problem

mollusk-svm is on 0.13.1, and the latest release is 0.17.1.

Summary of changes

  • Bump mollusk-svm from 0.13.1 to 0.17.1, and solana-account from 3.4 to 5.0 to match it. Cargo.lock is updated with cargo update -p mollusk-svm.
  • Toolchains: Mollusk 0.17 depends on agave 4.4, which requires Rust 1.98.1, so rust-toolchain.toml goes from 1.93.1 to 1.98.1. The pinned nightly in the Makefile goes from nightly-2026-01-22 to nightly-2026-07-16.
  • Removed the sol_sha512 test shim: agave 4.4 implements sol_sha512 (SIMD-0512, gated by enable_sha512_syscall), and Mollusk's default feature set enables it. The shim's own comment said to remove it once the runtime provides the syscall. It also stopped compiling, because solana-sbpf 0.24 dropped the memory_mapping argument from declare_builtin_function!. This PR removes the shim, its helper functions and its registration from program/tests/mollusk.rs, along with the now-unused solana-program-runtime and solana-sha512-hasher dev-dependencies of program. solana-sha512-hasher stays in the workspace for ed25519-verify. The README note about the shim is updated.
  • New clippy lint: the newer nightly's clippy reports chunks_exact_to_as_chunks for the chunks_exact_mut(8) loops in ed25519-verify. They now use as_chunks_mut::<8>(), which is stable since Rust 1.88; the platform tools for the pinned CLI 4.1.2 use Rust 1.89. Two of the call sites are on-chain code, so I compared the compute units the Mollusk tests print before and after: all 46 torsion and corpus cases are identical (corpus total 121,881 CUs).

Testing

Locally:

  • make build-sbf-{program,ed25519-verify} with the pinned Solana CLI 4.1.2
  • make test-{program,ed25519-verify}: the Mollusk SBF tests run against the runtime's native sol_sha512
  • make clippy-* with the new nightly
  • cargo fmt --check and make audit

🤖 Generated with Claude Code

Mollusk 0.17 uses solana-account 5 and depends on agave 4.4, which
requires rustc 1.98.1. Bump the matching dependency and toolchains.

Agave 4.4 ships `sol_sha512` (SIMD-0512) and Mollusk enables it by
default, so remove the local SHA-512 syscall shim from the Mollusk tests,
as its comment asked. The shim also no longer compiled against
solana-sbpf 0.24, which dropped the `memory_mapping` argument from
`declare_builtin_function!`.

The newer nightly's clippy flags `chunks_exact_mut(8)` with
`chunks_exact_to_as_chunks`; use `as_chunks_mut::<8>()` instead.
Compute units for the Mollusk test corpus are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joncinque
joncinque merged commit 397401c into solana-program:main Nov 20, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants