Skip to content

deps: Bump mollusk-svm to 0.17 - #134

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, and the latest release is 0.17.1.

Summary of changes

  • Bump mollusk-svm from 0.13 to 0.17.1, and update Cargo.lock with cargo update -p mollusk-svm.
  • Mollusk 0.17 uses newer versions of some shared types, so bump these dev-dependencies to match: solana-account 3.4 → 5.0 and solana-rent 3.1 → 4.4.
  • Toolchains: Mollusk 0.17 depends on agave 4.4, which requires Rust 1.98.1, so rust-toolchain.toml goes from 1.89.0 to 1.98.1. The pinned nightly in Cargo.toml goes from nightly-2026-01-22 to nightly-2026-07-16.
  • tests/setup/mod.rs: solana_account::create_account_for_test no longer exists. rent_sysvar() now builds the account with Mollusk's Sysvars::keyed_account_for_rent_sysvar(), keeping the same Rent::with_lamports_per_byte(DEFAULT_LAMPORTS_PER_BYTE) value.
  • tests/trim.rs: Mollusk now checks rent-state transitions by default (anza-xyz/mollusk#317). test_trim_canonical, test_trim_non_canonical and test_trim_buffer sent the trimmed excess lamports to an empty Account::default() destination. That left the destination below the rent-exempt minimum (626,400 lamports with no data), which the runtime rejects. The tests now fund the destination with minimum_balance_for(0) and expect that amount plus the trimmed excess. What the tests check about the program is unchanged.

Testing

Locally:

  • make build-sbf-program with the pinned Solana CLI 3.1.14
  • make test-{clients-rust,program} (76 tests)
  • make clippy-* with the new nightly
  • cargo fmt --check and make audit

🤖 Generated with Claude Code

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

`solana_account::create_account_for_test` is gone, so build the rent
sysvar account with Mollusk's `keyed_account_for_rent_sysvar`.

Mollusk now checks rent-state transitions by default. The trim tests
sent excess lamports to an empty, unfunded destination, leaving it below
the rent-exempt minimum, which the runtime rejects. Fund those
destinations with the empty-account minimum instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joncinque
joncinque merged commit 03cbf1c 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