Skip to content

deps: Bump mollusk crates to 0.17 - #646

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 and mollusk-svm-result are on 0.16, and the latest release is 0.17.1.

Summary of changes

  • Bump mollusk-svm and mollusk-svm-result from 0.16.0 to 0.17.1.
  • Mollusk 0.17 pulls solana-program-test and the other agave crates from 4.3 to 4.4.1, and agave 4.4 uses new major versions of several SDK crates. To keep the test types consistent, these dev-dependencies are bumped:
    • solana-account 4 → 5
    • solana-transaction 4 → 5
    • solana-keypair 3 → 4
    • solana-signer 3 → 4
    • solana-stake-history 1 → 2.1, matching interface
  • solana-account 5 only provides the bincode helpers (new_data, new_data_with_space, serialize_data, deserialize_data, StateMut) when its bincode feature is on. Before, that feature was enabled indirectly by other crates, and now it isn't. Turning it on explicitly breaks solana-runtime 4.4.1, which expects the wincode versions of those methods. So the tests now use state_traits::StateMutWincode, which most of stake_instruction.rs already used:
    • merge.rs tests: StateMut → StateMutWincode
    • tests/interface.rs: Account::new_data and deserialize_data → StateMutWincode
    • tests/stake_instruction.rs: serialize_data → set_state. Four call sites passed &state where state was already a reference; they now pass state, because the wincode trait infers T = &StakeStateV2 otherwise.
  • Cargo.lock is updated with cargo update -p mollusk-svm -p mollusk-svm-result.

Only tests and dev-dependencies change; the program's own dependencies are untouched.

Locally, all of these pass:

  • make build-sbf-program
  • make test-program (360 tests), make test-interface and make test-clients-rust
  • clippy with -D warnings --all-targets
  • cargo fmt --check and make audit

🤖 Generated with Claude Code

Mollusk 0.17 pulls in agave 4.4, which moves to solana-account 5,
solana-transaction 5, solana-keypair 4, solana-signer 4 and
solana-stake-history 2. Bump the matching dev-dependencies.

solana-account 5 only exposes `new_data`, `serialize_data`, etc. behind
its `bincode` feature, which is no longer enabled indirectly. Enabling it
breaks solana-runtime, which relies on the wincode versions of those
methods, so move the tests to the `StateMutWincode` trait instead.

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