-
Notifications
You must be signed in to change notification settings - Fork 0
chore: bump solana crates #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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" |
Copilot
AI
Dec 28, 2025
There was a problem hiding this comment.
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.
| anchor-lang = "1.0.0-rc.1" | |
| anchor-lang = "0.31.1" |
| solana-sdk = "~3.0" | ||
| solana-sdk-ids = "~3.0" |
Copilot
AI
Dec 28, 2025
There was a problem hiding this comment.
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.
| solana-sdk = "~3.0" | |
| solana-sdk-ids = "~3.0" | |
| solana-sdk = "~2.3" | |
| solana-sdk-ids = "~2.3" |
| 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"] } |
Copilot
AI
Dec 28, 2025
There was a problem hiding this comment.
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.
| borsh = { version = "1.6", features = ["derive"] } | |
| borsh = { version = "1", features = ["derive"] } |
No description provided.