Skip to content

deps: Bump mollusk crates to 0.17 - #203

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

joncinque merged 2 commits into
solana-program:mainfrom
clankmaxxing-clod:mollusk-0.17

Conversation

@clankmaxxing-clod

@clankmaxxing-clod clankmaxxing-clod commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

mollusk-svm and mollusk-svm-fuzz-fixture are on 0.11, and the latest release is 0.17.1.

Summary of changes

  • Bump mollusk-svm and mollusk-svm-fuzz-fixture from 0.11.0 to 0.17.1.

  • Mollusk 0.17 depends on agave 4.4, which uses newer major versions of several SDK crates. These dev-dependencies are bumped to match:

    • program: solana-account 3 → 5
    • pinocchio/program: solana-account 3 → 5, solana-program-test and agave-feature-set 3 → 4.4.1, solana-transaction 3 → 5, solana-transaction-error 3 → 4, solana-keypair and solana-signer 3 → 4, solana-rent 3 → 4.4, plus a new solana-instruction-error 3 dependency
  • API changes between Mollusk 0.11 and 0.17, and in the newer SDK crates:

    • Check::all_rent_exempt() was removed because Mollusk now checks rent-state transitions by default (anza-xyz/mollusk#317). The calls in batch.rs are removed, and the check still runs.
    • Mollusk::feature_set is now an SVMFeatureSet, so batch.rs uses FeatureSet::all_enabled().runtime_features().
    • solana-rent 4 renamed Rent::lamports_per_byte_year to lamports_per_byte (sync_native.rs).
    • InstructionError is imported from solana-instruction-error, because solana-instruction's error module no longer provides it.
    • solana_account::create_account_for_test no longer exists. The rent sysvar account in program/tests/processor.rs now comes from Mollusk's Sysvars::default().keyed_account_for_rent_sysvar().
    • Account::new is deprecated in solana-account 5.2. The 107 test call sites now use Account::new_with_data(lamports, vec![0; space], owner), which creates the same zero-filled account. Otherwise clippy with -D warnings fails.
  • Cargo.lock: besides the cargo update, the five8 1.0.0 entry now points at five8_core 1.0.0 instead of 0.1.2. five8 1.0.0 accepts five8_core >=0.1.1, <2, and the resolver reused the older 0.1.2. That version's DecodeError doesn't implement Error, so solana-keypair 4.0.1 failed to compile. cargo metadata --locked accepts the edited lockfile.

  • Makefile: SOLANA_CLI_VERSION goes from 3.0.0 to 4.3.2, the same version token-2022 uses. The updated lockfile includes edition-2024 crates (e.g. zeroize_derive 1.5), and the Cargo 1.84 shipped with the 3.0.0 platform tools can't parse them, so cargo build-sbf failed in CI. This also moves the JS tests' local validator to 4.3.2.

Apart from the CLI version, only tests, dev-dependencies and Cargo.lock change; neither program's own dependencies are touched.

Testing

Locally:

  • make build-sbf-program and make build-sbf-pinocchio-program with Solana CLI 4.3.2
  • make test-{interface,pinocchio-interface,pinocchio-program,program}
  • the fixture build with --features mollusk-svm/fuzz
  • make clippy-* for all four packages with nightly-2026-07-16
  • cargo fmt --check and make audit

I didn't run the mollusk run-test regression job. It uses the fixtures checked into the repo and the latest mollusk-svm-cli, so this bump doesn't affect it.

🤖 Generated with Claude Code

clankmaxxing-clod and others added 2 commits November 20, 2026 21:42
Mollusk 0.17 depends on agave 4.4, so bump the test dependencies that
share types with it: solana-account 5 in both programs, and agave 4.4 /
solana-transaction 5 / solana-signer 4 / solana-keypair 4 for the
pinocchio program's program-test suite.

API changes picked up along the way:
* `Check::all_rent_exempt()` is gone; Mollusk now runs rent-state checks
  by default.
* Mollusk's `feature_set` is now an `SVMFeatureSet`.
* `Rent::lamports_per_byte_year` is renamed to `lamports_per_byte`.
* `InstructionError` now comes from solana-instruction-error.
* `solana_account::create_account_for_test` is gone; use Mollusk's
  `keyed_account_for_rent_sysvar` instead.
* `Account::new` is deprecated; use `Account::new_with_data`.

Also point five8 1.0.0 at five8_core 1.0.0 in the lockfile, since
solana-keypair 4 needs `DecodeError: Error`, which five8_core 0.1 lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The updated lockfile now includes edition-2024 crates (e.g. zeroize_derive 1.5),
which the Cargo 1.84 shipped with the 3.0.0 platform tools can't parse,
so `cargo build-sbf` fails.

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