chore(deps): bump anchor-lang from 1.0.0-rc.5 to 1.0.0 by dependabot[bot] · Pull Request #552 · solana-developers/program-examples

Bumps anchor-lang from 1.0.0-rc.5 to 1.0.0.

Release notes

Sourced from anchor-lang's releases.

v1.0.0

The first stable major release is here. This version ships several new features and improvements.

Check out the release notes from Anchor website or GitHub.

For a list of notable changes with their associated PRs, see the CHANGELOG.

Changelog

Sourced from anchor-lang's changelog.

[1.0.0] - 2026-04-02

Features

  • lang: Add Migration<'info, From, To> account type for schema migrations between account types (#4060).
  • cli: Added a check_program_id_mismatch in build time to check if the program ID in the source code matches the program ID in the keypair file (#4018). This check will be skipped during anchor test.
  • lang: Add instruction parser to declare_program! (#4118).
  • ts: Export all IDL types from the root. Users can now update dist/cjs/idl imports to import directly from @anchor-lang/core (#3948).
  • lang: Add declare_program! support with just anchor_client and not anchor_lang (#4157).
  • lang: Export Owners from prelude (#4189).
  • cli: Use surfpool by default for anchor test and anchor localnet commands (#4106).
  • lang: Optimize enums with all unit variants and empty arrays with Lazy (#4237).
  • lang: Include init_if_needed accounts in duplicate mutable account checks (#4239).
  • client: Accept FnMut for events closure (#4024).
  • client: Export all types used by the public API (#4211).
  • lang: Make common::close accept references (#4178).
  • cli/idl: Add --allow-localnet option for IDL commands; fix panic when run outside a workspace (#4252).
  • lang: Check owner on account reload (#3837).
  • lang/ts: Upgrade borsh to 1.5.7 (#4012).
  • syn: Relax seeds syntax to allow more flexible PDA seed expressions (#3813).
  • lang: Deprecate AccountInfo usage in Accounts macro with a compile-time warning (#3854).
  • cli: Update anchor init to use the multiple program template by default (#3958).
  • cli: Add hooks section to Anchor.toml for {pre,post}-{build,test,deploy} lifecycle hooks (#3862).
  • lang: Add generic program validation support to Program type allowing Program<'info> for executable-only validation (#3878).
  • cli: Added litesvm test template and made it the default option on anchor init (#4316)
  • cli: Added --install-agent-skills to automatically install Solana agent skills during anchor init (#4307)
  • avm: Added flags and version labels to explicitly handle pre-releases (avm list --pre-release, avm update --pre-release and avm install latest-pre-release). (#4335)
  • avm: Added avm self-update command and passive version check warning for out of date avm (#4338)
  • lang, cli, client: Updated solana dependencies to the latest compatible versions. Bumping CI and docker builds to use Solana CLI version 3.1.10 (#4317)

Fixes

  • lang: Add missing Lazy bound on generics (#4240).
  • lang: Fix wrong generated error code in declare_program! (#4129).
  • idl: Fix defined types with unsupported fields not producing an error (#4088).
  • lang: Fix using non-instruction composite accounts multiple times with declare_program! (#4113).
  • lang: Fix declare_program! messing up IDL errors generation (#4126).
  • idl: Fix address constraint not resolving constants that have numbers in their identifiers (#4144).
  • lang: Fix constant nested string generation in declare_program! (#4158).
  • idl: Fix local_file method not found for proc_macro2::Span error (#4187).
  • lang: Relax duplicate mutable account constraint to only check types that serialize on exit (Account, LazyAccount, InterfaceAccount, Migration) (#4202).
  • idl: Make serde_json optional (#4296).
  • lang: Fix declare_program! instruction parser with optional accounts (#4180).
  • lang: Use original borsh derives (#4205).
  • lang: Fix unexpected account substitution in InterfaceAccount (#4139).
  • idl: Respect offset = ... in IDL generation for custom errors (#4040).
  • cli: Relax separate dependency check for solana-program (#4166).
  • lang: Enforce type and count matching between instruction handler and #[instruction(..)] args (#4000).
  • lang: Handle invalid camelCase identifiers more gracefully (#4021).
  • cli: Fix i128/u128 deserialization (#3938).

... (truncated)

Commits
  • 25be6d5 v1.0.0
  • 7e37c6a client: Remove the solana-account-decoder crate export (#4373)
  • df3f11f examples, tests: Set package versions to 0.1.0 (#4362)
  • 52658df chore: Add mass format commit to git blame ignorelist (#4365)
  • 36532f1 fix: skip keygen for prepare-release and use correct cli version for release ...
  • 8537871 chore: updated bench values (#4368)
  • 8dbcb88 fix(ci): fetch tags on prepare-release (#4367)
  • 858ba09 fix: resolve latest stable version for docs version bump (#4366)
  • 095702c chore(cli): Use include_str!() for solana-program version (#4342)
  • 62865c6 Add rustfmt configuration (#4354)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)