Solana SDK v2 → v3 Upgrade Skill
Guide for upgrading Solana Rust programs from SDK v2.x to v3.x.
References
- •migration-guide.md — Step-by-step upgrade process
- •module-mapping.md — Complete v2 → v3 module/crate mapping
- •breaking-changes.md — Breaking API changes and fixes
- •spl-migration.md — SPL crate upgrades (spl-token → spl-token-interface)
Quick Start
The recommended upgrade path:
- •Upgrade to latest v2 crates
- •Fix all deprecation warnings (they tell you exactly what to change)
- •Switch to SPL interface crates v1 (optional but recommended)
- •Upgrade to v3 crates
- •Upgrade SPL interface crates to v2 (optional)
Source
Based on https://github.com/anza-xyz/solana-sdk/blob/master/README.md