fix(deps): update rust crate anchor-lang to 0.30.0 #207
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.28.0
->0.30.0
0.27.0
->0.30.0
Release Notes
coral-xyz/anchor (anchor-lang)
v0.30.1
Compare Source
Features
RUSTUP_TOOLCHAIN
environment variable (#2941).AVM_HOME
environment variable (#2917).avm list
when GitHub API rate limits are reached (#2962)--no-install
option to theinit
command (#2945).TryFromIntError
forError
to be able to propagate integer conversion errors (#2950).upgrade
command (#2998).spl-associated-token-account
crate (#2999).declare_program!
(#2997).idl convert
command (#3009).idl type
command (#3017).anchor_lang::pubkey
macro for declaringPubkey
const values (#3021).anchor-syn
dependency (#3030).const
of program ID todeclare_id!
anddeclare_program!
(#3019).Fixes
maxSupportedTransactionVersion
inAnchorProvider.send*()
methods (#2922).anchor init
(#2929).Cargo.lock
of the project when generating idls for external types (#2946).declare_program!
(#2959).declare_program!
(#2965).Vec<u8>
type withdeclare_program!
(#2966).ProgramError::ArithmeticOverflow
not found error (#2975).declare_program!
(#2967).declare_program!
(#2977).unexpected_cfgs
build warning (#2992).declare_program!
(#2994).rust-version
from crate manifests (#3000).address
constraint with field expressions (#3034).bytemuckunsafe
account serialization withdeclare_program!
(#3037).Breaking
v0.30.0
Compare Source
See the Anchor 0.30 release notes for a high-level overview of how to update.
Features
init
andnew
(#2698).deploy
(#2705).solana program deploy
command withanchor deploy
(#2709).InstructionData::write_to
implementation (#2733).#[interface(..)]
attribute for instruction discriminator overrides (#2728)..interface(..)
method for instruction discriminator overrides (#2728).anchor-lang
and CLI version compatibility (#2753).idl close
accepts optional--idl-address
parameter (#2760).workspace.members
andworkspace.exclude
. (#2785).--test-template
option forinit
command (#2805).anchor test
is able to run multiple commands (#2799).@coral-xyz/anchor
package and CLI version compatibility (#2813).repr
s (#2824).accountsPartial
method to keep the oldaccounts
method behavior (#2824).opts
parameter ofAnchorProvider
constructor optional (#2843).--no-idl
flag to thebuild
command (#2847).prepend
option to MethodBuilderpreInstructions
method (#2863).declare_program!
macro (#2857).deactivate_feature
flag tosolana-test-validator
config in Anchor.toml (#2872).docs
field for constants (#2887).Event
utility type to get events from bytes (#2897).Lamports
trait operations (#2907).Fixes
new_from_array
method toHash
(#2682).resolver = "2"
) (#2676).provider.wallet
inAnchor.toml
(#2696).anchor_version
override (#2704).shmem
feature enabled (#2722).localhost
to127.0.0.1
, NodeJS 17 IP resolution changes for IPv6 (#2725).try_to_vec
usage while setting the return data in order to reduce heap memory usage (#2744)migrate
command not working without globalts-node
installation (#2767).parse_logs_response
to prevent panics when more than 1 outer instruction exists in logs (#2856).stdsimd
feature compilation error fromahash
when installing the CLI using newer Rust versions (#2867).solana-program
dependency (#2900).TokenAccount
andMint
Copy
(#2904).Breaking
cargo build-sbf
the default build command (#2694).overflow-checks
flag (#2716).anchor-deprecated-state
feature (#2717).CLOSED_ACCOUNT_DISCRIMINATOR
(#2726).Option<u8>
rather thanu8
(#2730).shared-memory
program (#2747).associated
,account.associated
andaccount.associatedAddress
methods (#2749).idl upgrade
command closes the IDL buffer account (#2760).--jest
option from theinit
command (#2805).idl-build
feature in programCargo.toml
(#2824).seeds
feature toresolution
and make it enabled by default (#2824).idl parse
command (#2824).idl-parse
andseeds
features (#2824).accounts
method to no longer accept resolvable accounts (#2824).Program
instances use camelCase for everything (#2824).programId
parameter of theProgram
constructor (#2864).anchor-syn
crate to the new IDL crate (#2882).#[non_exhaustive]
to IDL enums (#2890).v0.29.0
Compare Source
See the Anchor 0.29 release notes for a high-level overview of how to update.
Features
AccountInfo
(#2656).get_lamports
,add_lamports
andsub_lamports
methods for all account types (#2552).DynSigner
to simplify use ofClient<C> where <C: Clone + Deref<Target = impl Signer>>
with Solana clap CLI utils that loadsSigner
asBox<dyn Signer>
(#2550).anchor build
still uses parsing method to generate IDLs, useanchor idl build
to generate IDLs with the build method (#2011)..anchorversion
file to facilitate switching between different versions of theanchor-cli
(#2553).anchor.workspace.myProgram
,anchor.workspace.MyProgram
... (#2579).mpl-token-metadata
crate (#2583).TokenRecordAccount
for pNFTs (#2597).Box
the inner enums ofanchor_lang::error::Error
to optimizeanchor_lang::Result
(#2600).Program.addEventListener
method (#2627).IdlBuild
trait to implement IDL support for custom types (#2629).idl-build
feature. IDL build method will not work without enabling this feature when usinganchor-spl
(#2629).test.upgradeable
,test.genesis.upgradeable
setting inAnchor.toml
to support testing upgradeable programs (#2642).1.17.0
,1.16
remains supported (#2645).anchor-cli
installation from commit (#2659).toolchain
property inAnchor.toml
to override Anchor and Solana versions (#2649).Fixes
assert
(#2535).const
in theInitSpace
macro (#2555).1.14
(#2572).anchor build --no-docs
adding docs to the IDL (#2575).associated_token::token_program
constraint (#2603).anchor account
command panicking outside of workspace (#2620).Breaking
idl
feature has been replaced withidl-build
,idl-parse
andidl-types
features (#2011).parse
method now returnsResult<Idl>
instead ofResult<Option<Idl>>
(#2582).mpl-token-metadata
dependency to use the client SDK instead of the program crate (#2632).base64-js
dependency (#2635).IdlTypeDefinitionTy
enum has a new variantAlias
(#2637).1.14
is no longer supported, minimum required Solana version is1.16.0
(#2645).anchor_version
andsolana_version
property inAnchor.toml
that was being used in verifiable builds are moved insidetoolchain
. They are now being used for all commands in the workspace, not just verifiable builds (#2649).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.