Skip to content

Update to Solana 3.0 - #4031

Merged
jacobcreech merged 10 commits into
otter-sec:masterfrom
jamie-osec:solana-3-0
Nov 26, 2025
Merged

Update to Solana 3.0#4031
jacobcreech merged 10 commits into
otter-sec:masterfrom
jamie-osec:solana-3-0

Conversation

@jamie-osec

@jamie-osec jamie-osec commented Oct 27, 2025

Copy link
Copy Markdown
Collaborator

Closes #4025
Closes #3892

@vercel

vercel Bot commented Oct 27, 2025

Copy link
Copy Markdown

@jamie-osec is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@jamie-osec
jamie-osec marked this pull request as draft October 27, 2025 17:05
@jamie-osec
jamie-osec marked this pull request as ready for review October 27, 2025 23:56
Comment thread lang/src/lib.rs
Comment on lines -137 to -160
#[deprecated(since = "2.2.0", note = "Use `solana-sysvar` crate instead")]
#[allow(deprecated)]
pub use {
solana_sdk_ids::sysvar::{check_id, id, ID},
solana_sysvar::{
clock, epoch_rewards, epoch_schedule, fees, is_sysvar_id, last_restart_slot,
recent_blockhashes, rent, rewards, slot_hashes, slot_history, stake_history,
Sysvar, ALL_IDS,
},
};
pub mod instructions {
pub use solana_instruction::{BorrowedAccountMeta, BorrowedInstruction};
#[cfg(not(target_os = "solana"))]
pub use solana_instructions_sysvar::construct_instructions_data;
#[deprecated(
since = "2.2.0",
note = "Use solana-instructions-sysvar crate instead"
)]
pub use solana_instructions_sysvar::{
get_instruction_relative, load_current_index_checked, load_instruction_at_checked,
store_current_index_checked, Instructions,
};
#[deprecated(since = "2.2.0", note = "Use solana-sdk-ids crate instead")]
pub use solana_sdk_ids::sysvar::instructions::{check_id, id, ID};

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I want to highlight that these deprecated re-exports have been removed here in favor of having the end program pull them in directly

@jamie-osec

Copy link
Copy Markdown
Collaborator Author

To reduce friction with the updates for anchor-spl, the spl-<name>-interface crates are re-exported as spl-<name> as they were previously

@jamie-osec
jamie-osec force-pushed the solana-3-0 branch 3 times, most recently from 55975f5 to 963cefe Compare October 28, 2025 00:23
@morgsmccauley

Copy link
Copy Markdown

Hey! Is this expected to be completed before 3.0 is live on mainnet?

@jacobcreech

Copy link
Copy Markdown
Collaborator

@morgsmccauley 3.0 is already live on mainnet

@nutafrost nutafrost moved this to Todo in Anchor 1.0 Oct 28, 2025
@nutafrost nutafrost moved this from Todo to Security Review Required in Anchor 1.0 Oct 28, 2025
@jamie-osec

Copy link
Copy Markdown
Collaborator Author

The main blocker here is mpl-token-metadata and dependencies, which will need updating

@jamie-osec jamie-osec added breaking Major Major breaking change labels Oct 29, 2025
@nutafrost nutafrost assigned jacobcreech and unassigned jamie-osec Nov 4, 2025
@jamie-osec
jamie-osec force-pushed the solana-3-0 branch 3 times, most recently from 2471556 to 2af5bfd Compare November 5, 2025 14:14
@jamie-osec

Copy link
Copy Markdown
Collaborator Author

As a stopgap measure, 2af5bfd disables anchor_spl::metadata, removing the mpl-token-metadata for now

@jacobcreech

Copy link
Copy Markdown
Collaborator

@jamie-osec is there a way we can update where we don't need to depend on external dependencies in the future? We can't continue to have this kind of problem post 1.0

@jamie-osec
jamie-osec force-pushed the solana-3-0 branch 4 times, most recently from 93a6aea to 59738f4 Compare November 7, 2025 23:40
@vercel

vercel Bot commented Nov 26, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
anchor-docs Ignored Ignored Preview Nov 26, 2025 9:48pm

@jacobcreech
jacobcreech merged commit 949de95 into otter-sec:master Nov 26, 2025
57 of 58 checks passed
@github-project-automation github-project-automation Bot moved this from Security Review Done to Done in Anchor 1.0 Nov 26, 2025
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
* feat(lang): Update to Solana 3.0

* feat(client): Update to Solana 3.0

* feat(cli): Update to Solana 3.0

* feat(spl): Update to Solana 3.0

* fix: Lock `solana-sysvar` to 3.0.x

* chore: Update test lockfiles

* chore: Move `solana-*` dependencies into workspace `Cargo.toml`

* chore: Update benchmarks

* chore: update solana-invoke

* chore: update solana-invoke in dependencies

---------

Co-authored-by: swaroop-osec <swaroop@osec.io>
Co-authored-by: jacobcreech <jacob.creech@solana.org>
@jamie-osec jamie-osec added this to the v1.0.0 milestone Jun 23, 2026
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Jul 25, 2026
* feat(lang): Update to Solana 3.0

* feat(client): Update to Solana 3.0

* feat(cli): Update to Solana 3.0

* feat(spl): Update to Solana 3.0

* fix: Lock `solana-sysvar` to 3.0.x

* chore: Update test lockfiles

* chore: Move `solana-*` dependencies into workspace `Cargo.toml`

* chore: Update benchmarks

* chore: update solana-invoke

* chore: update solana-invoke in dependencies

---------

Co-authored-by: swaroop-osec <swaroop@osec.io>
Co-authored-by: jacobcreech <jacob.creech@solana.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Major Major breaking change Merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to solana-sdk >=3 specify workspace dependencies in the root Cargo.toml and reuse them

5 participants