Skip to content

deps: upgrade solana sdk from 2.2.7 to 2.3.x#3076

Merged
juan-malbeclabs merged 2 commits intomainfrom
jo/solana_sdk_2.3.1
Feb 24, 2026
Merged

deps: upgrade solana sdk from 2.2.7 to 2.3.x#3076
juan-malbeclabs merged 2 commits intomainfrom
jo/solana_sdk_2.3.1

Conversation

@juan-malbeclabs
Copy link
Contributor

Summary of Changes

  • Bumps all Solana SDK workspace dependencies from 2.2.7 to 2.3.1 (except solana-program which only has 2.3.0 published)
  • Regenerates Cargo.lock with the updated dependency graph

Diff Breakdown

Category Files Lines (+/-) Net
Config/build 2 +746 / -707 +39

Minimal change — two files touched, net diff is entirely version number updates in Cargo.toml and the resulting lockfile regeneration.

Key files (click to expand)
  • Cargo.toml — bumps 8 Solana workspace dependency pins from 2.2.7 to 2.3.x
  • Cargo.lock — regenerated lockfile reflecting new transitive dependency graph

Testing Verification

  • make rust-build passes (including cargo build-sbf for all onchain programs)
  • make rust-test passes: 215 unit/integration tests across all Rust crates, all green
  • make rust-lint passes: clippy clean across all 7 crates with -Dclippy::all -Dwarnings

@juan-malbeclabs juan-malbeclabs enabled auto-merge (squash) February 23, 2026 15:38
Copy link
Contributor

@karl-dz karl-dz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cargo.lock looks good. The minor bump in the workspace Cargo.toml shouldn't be necessary and calling cargo update would have been sufficient. But doesn't hurt.

FYI, be careful when updating to solana-program@3.0.0 in a subsequent PR because it is broken the last time I checked it out. Whenever you tackle the v3 upgrade, you will most likely need to pull in the separate Solana dependencies and remove solana-program

@juan-malbeclabs juan-malbeclabs merged commit 17c003b into main Feb 24, 2026
30 checks passed
@juan-malbeclabs juan-malbeclabs deleted the jo/solana_sdk_2.3.1 branch February 24, 2026 15:10
snormore added a commit that referenced this pull request Feb 24, 2026
## Summary of Changes
- Add `libssl-dev:amd64` and enable `dpkg` multi-arch support in the
devcontainer so `openssl-sys` (required by Solana SDK 2.3.x's
`solana-secp256r1-program`) can build when cross-compiling from arm64 to
x86_64
- Set `PKG_CONFIG_ALLOW_CROSS=1` so pkg-config returns x86_64 results
during cross-compilation
- Cross-compilation started failing after #3076 introduced the
`solana-secp256r1-program` dependency

## Diff Breakdown
| Category     | Files | Lines (+/-) | Net  |
|--------------|-------|-------------|------|
| Config/build |     1 | +7 / -3     |  +4  |

Small, focused build-environment fix.

<details>
<summary>Key files (click to expand)</summary>

- `.devcontainer/Dockerfile` — add amd64 architecture, install
`libssl-dev:amd64`, set `PKG_CONFIG_ALLOW_CROSS=1`

</details>

## Testing Verification
- Verified goreleaser cross-compilation succeeds for x86_64 targets on
arm64 devcontainer
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