Skip to content

Conversation

@rista404
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades Solana and Anchor dependencies to their latest versions. The main changes include upgrading anchor-lang from 0.31.1 to 1.0.0-rc.1 (a release candidate), solana-sdk from ~2.3 to ~3.0, and adding a new solana-sdk-ids dependency.

Key changes:

  • Upgraded anchor-lang to version 1.0.0-rc.1 with significant architectural changes (now uses individual solana crates instead of monolithic solana-program)
  • Bumped solana-sdk from ~2.3 to ~3.0, introducing breaking API changes
  • Updated borsh from "1" to "1.6" for specific version control

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
Cargo.toml Updates anchor-lang to 1.0.0-rc.1, solana-sdk to ~3.0, adds solana-sdk-ids ~3.0, and updates borsh to 1.6
Cargo.lock Reflects dependency resolution changes with multiple versions of core solana crates (e.g., solana-pubkey 2.4.0, 3.0.0, and 4.0.0) present in the dependency tree

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"mocks",
] }
anchor-lang = "0.31.1"
anchor-lang = "1.0.0-rc.1"
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

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

The anchor-lang version is being updated to a release candidate (1.0.0-rc.1). While release candidates are generally stable, they may still have breaking changes before the final 1.0.0 release. Consider monitoring the Anchor project for any breaking changes or known issues with this RC version, especially since this is a major version bump from 0.31.1.

Suggested change
anchor-lang = "1.0.0-rc.1"
anchor-lang = "0.31.1"

Copilot uses AI. Check for mistakes.
Comment on lines +31 to +32
solana-sdk = "~3.0"
solana-sdk-ids = "~3.0"
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

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

The solana-sdk dependency is being upgraded from version ~2.3 to ~3.0, which is a major version bump. This could introduce breaking API changes. Additionally, a new dependency solana-sdk-ids ~3.0 has been added. Ensure that all code using solana-sdk APIs has been tested and updated to handle any breaking changes introduced in version 3.0.

Suggested change
solana-sdk = "~3.0"
solana-sdk-ids = "~3.0"
solana-sdk = "~2.3"
solana-sdk-ids = "~2.3"

Copilot uses AI. Check for mistakes.
redis = { version = "0.32.4", features = ["tokio-rustls-comp"] }
solana-transaction-status = { git = "https://github.com/Deiadara/agave", rev = "ddeb0d1" }
borsh = { version = "1", features = ["derive"] }
borsh = { version = "1.6", features = ["derive"] }
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

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

The borsh version has been updated from "1" to "1.6". While this is a minor version change within the same major version, consider using "1.6" consistently if specific features from that version are needed, or use "1" to allow for patch updates. The explicit version "1.6" will prevent automatic patch updates that might include bug fixes.

Suggested change
borsh = { version = "1.6", features = ["derive"] }
borsh = { version = "1", features = ["derive"] }

Copilot uses AI. Check for mistakes.
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.

3 participants