Skip to content

deps: Bump mollusk-svm to 0.17 and agave crates to 4.4 - #1662

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.16, and the latest release is 0.17.1. Mollusk 0.17 depends on agave 4.4, so the cargo update moves every agave crate in the lockfile from 4.3 to 4.4.1. Agave 4.4 uses new major versions of several SDK crates (solana-account 5, solana-transaction 5, solana-message 5, solana-keypair 4, solana-signer 4). The clients still use the old versions, so spl-token-client and spl-token-cli stop compiling.

Summary of changes

Program (Mollusk tests)

  • Bump mollusk-svm 0.16 → 0.17 and the solana-account dev-dependency 4 → 5.
  • solana-account 5.2 deprecates Account::new, so the 137 test call sites in processor.rs and assert_instruction_count.rs now use Account::new_with_data(lamports, vec![0; space], owner). That creates the same zero-filled account.

spl-token-client (rust-legacy) and spl-token-cli

  • Bump the agave crate requirements from 4.3.0 to 4.4.1, and move to solana-account 5, solana-message 5, solana-transaction 5 and solana-signer 4.
  • Raise solana-instruction to 3.5.1, the first 3.x release that re-exports the v4 types that solana-message 5 expects.
  • Remove solana-sdk and use the individual component crates instead. solana-sdk 5 always enables solana-account's bincode feature, and solana-runtime 4.4.1 doesn't compile with it on: its inherent bincode new_data takes precedence over the wincode trait method that the runtime calls. Staying on solana-sdk 4 would mix old and new SDK types. All 52 affected files only change their use statements (no logic changes), and the new crates are listed in each manifest.
  • The native test programs in interest_bearing_mint.rs, scaled_ui_amount.rs and token_metadata_emit.rs now call invoke and get_return_data through solana_program::program (v5). Off-chain, solana-cpi doesn't use program-test's syscall stubs, and get_return_data() would return None.

⚠️ This is a breaking change for spl-token-client, because its public API now uses solana-transaction 5, solana-signer 4 and the other new types. Its next release needs a breaking version bump (0.21 → 0.22).

Testing

Locally:

  • make build-sbf-program and make build-sbf-confidential-elgamal-registry
  • make test-* for every package in RUST_PACKAGES, including interface (124 tests), program (97) and clients-rust-legacy (252), and all the confidential-* crates
  • make clippy-* for every Rust package with nightly-2026-07-16 and -D warnings
  • cargo +nightly-2026-07-16 fmt --check and make audit

Not run locally: the clients-cli command integration test. It starts solana-test-validator, and agave 4.4's agave-fs asserts that io_uring is available, which my container doesn't allow. The other CLI test binaries pass. Please check this job in CI.

🤖 Generated with Claude Code

Mollusk 0.17 requires agave 4.4, which moves to solana-account 5,
solana-transaction 5, solana-message 5, solana-keypair 4 and
solana-signer 4. Bump the program's test dependencies to match, and
migrate spl-token-client and spl-token-cli to the new SDK types.

solana-sdk 5 always enables solana-account's `bincode` feature, which
breaks solana-runtime 4.4, so replace solana-sdk in the clients with the
individual component crates.

solana-cpi doesn't route through program-test's syscall stubs off-chain,
so the native test programs use solana-program 5's `program` wrappers.

solana-account 5.2 deprecates `Account::new`, so the program's tests use
`Account::new_with_data` instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joncinque
joncinque merged commit 935c53e into solana-program:main Nov 20, 2026
46 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