Skip to content

Move to LiteSVM 0.18.2 and drop the hand-written Agave 4.3 pins - #218

Merged
mikemaccana merged 2 commits into
mainfrom
claude/litesvm-0-18-2-drop-agave-pins
Nov 25, 2026
Merged

mikemaccana merged 2 commits into
mainfrom
claude/litesvm-0-18-2-drop-agave-pins

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

58 crates carried solana-program-runtime = "~4.3" and solana-fee = "~4.3" as dev-dependencies with a four-line comment explaining why. LiteSVM 0.18.2 makes them redundant, so all 116 pin lines and their comments come out.

Why they existed

Per 3134c69b: LiteSVM 0.18.1 declares its Agave deps as ^4.3.0, a caret range that semver-admits Agave 4.4.0 — which LiteSVM 0.18.1 does not compile against. With no committed lockfile in the Anchor v2 projects, every fresh resolve picked 4.4.0 and broke. Pinning those two crates (the caret-ranged ones that track the Agave major line) held the whole graph at 4.3, since Agave pins its own crates to each other exactly.

Why they can go now

LiteSVM tightened those same ranges upstream:

litesvm solana-program-runtime
0.18.0 ^4.3.0
0.18.1 ^4.3.0
0.18.2 ~4.3.2

A fresh resolve can no longer reach Agave 4.4.0 through LiteSVM at all.

Note this is not the exit condition the deleted comments named ("once a LiteSVM release builds against Agave 4.4"). That is still unmet — no LiteSVM release, tag, or master targets Agave 4.4, so the Agave crates stay on 4.3.2. The pins go because LiteSVM stopped admitting 4.4, not because it gained support for it.

Why the floor bump is the load-bearing part

The 35 crates declaring litesvm = "0.18.1" move to "0.18.2". That matters beyond tidiness: ^0.18.1 already resolves to 0.18.2 today, but left at 0.18.1 a lockfile or cargo update --precise could return to 0.18.1 and re-admit 4.4.0. The floor now excludes the version that needed the pins.

Cargo.lock updates accordingly — each member loses the two direct dependency edges and litesvm moves to 0.18.2. The solana-fee and solana-program-runtime packages stay in the lock, still pulled transitively by LiteSVM.

Testing

Resolution is what changed here, so that is what I verified. cargo tree reports litesvm 0.18.2 and solana-program-runtime 4.3.2 in an Anchor v2 project with the pin removed, in token-swap, and in a native project.

Suites then pass for one project per touched shape, each built with cargo build-sbf and run under LiteSVM:

shape project result
anchor (pin removal) basics/transfer-sol/anchor pass (3 tests)
native (floor bump) basics/cross-program-invocation/native pass
pinocchio (floor bump) basics/counter/pinocchio pass (2 tests)

The two ASM crates are a dev-dependency bump only and were not run — they need sbpf build, which wasn't available in the environment used.

CI covers the resolve across every project, which is the real test, since the original breakage was a resolution problem rather than a compile error in repo code.


Generated by Claude Code

58 crates carried `solana-program-runtime = "~4.3"` and `solana-fee =
"~4.3"` as dev-dependencies, with a four-line comment explaining why.
They were added because LiteSVM 0.18.1 declares its Agave dependencies
with `^4.3` ranges, which semver-admit Agave 4.4.0, while LiteSVM 0.18.1
does not compile against it. With no committed lockfile every fresh
resolve picked 4.4.0 and broke.

LiteSVM 0.18.2 tightened those same ranges to `~4.3.2`, so the hazard is
gone upstream and the hand pins no longer do anything. Remove all 116
pin lines and their comments.

Raising the floor from 0.18.1 to 0.18.2 is what makes removal safe,
rather than merely tidy: the declared `^0.18.1` already resolves to
0.18.2 today, but left at 0.18.1 a lockfile or `cargo update --precise`
could return to 0.18.1 and re-admit Agave 4.4.0. The floor now excludes
the version that needed the pins.

Note this is not the exit condition the deleted comments named ("once a
LiteSVM release builds against Agave 4.4"). That is still unmet: no
LiteSVM release, tag or `master` targets Agave 4.4, so the Agave crates
stay on 4.3.2. The pins go because LiteSVM stopped admitting 4.4, not
because it gained support for it.

Verified by resolution, which is what changed: `cargo tree` reports
litesvm 0.18.2 and solana-program-runtime 4.3.2 in an Anchor v2 project
with the pin removed, a token-swap project, and a native project.
Suites pass for one project per touched shape - transfer-sol (anchor),
cross-program-invocation (native) and counter (pinocchio) - each built
with `cargo build-sbf` and run under LiteSVM. The two ASM crates are a
dev-dependency bump only and were not run; they need `sbpf build`.

Claude-Session: https://claude.ai/code/session_01YTTjefTz2Kbj8t5qg77kXg
@mikemaccana
mikemaccana merged commit 9488782 into main Nov 25, 2026
48 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