Migrating to 0.32.0
IDL upload by default
anchor deploy now uploads IDL automatically:
solana-verify integration
anchor verify has been replaced:
Program type changes
GenericProgram<'info> now validates executable-only:
Migrating to 0.31.0
Dynamic discriminators
Discriminators are no longer always 8 bytes:LazyAccount
For large accounts, useLazyAccount to defer deserialization:
Migrating to 0.30.0
Token-2022 support
Use interface types for Token-2022 compatibility:Migrating from 0.29.0
Solana 1.18+ compatibility
Update yourAnchor.toml:
Account resolution
Use IDL-based account resolution:General upgrade process
-
Update Anchor CLI:
-
Update dependencies in
Cargo.toml: -
Update
Anchor.tomlif needed -
Run tests:
- Fix any breaking changes based on compiler errors
Version compatibility
| Anchor | Solana | Rust |
|---|---|---|
| 0.32.x | 2.0+ | 1.75+ |
| 0.31.x | 1.18+ | 1.75+ |
| 0.30.x | 1.17+ | 1.70+ |
| 0.29.x | 1.16+ | 1.70+ |
Need help?
Changelog
Review detailed changes
Discord
Ask the community