fix(deps): update rust crate anchor-lang to 0.32.0#207
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
fix(deps): update rust crate anchor-lang to 0.32.0#207renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
a8f21d3 to
d950861
Compare
d950861 to
323c835
Compare
323c835 to
6aa210b
Compare
6aa210b to
17e5566
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.32.00.27.0→0.32.0Release Notes
coral-xyz/anchor (anchor-lang)
v0.32.1Compare Source
Features
Fixes
(#3975).
(#3976).
Breaking
v0.32.0Compare Source
Features
#[error]attribute todeclare_program!(#3757).anchor verifyto usesolana-verifyunder the hood, adding automatic installation via AVM, local path support, and future-proof argument passing (#3768).solana-programcrate with smaller crates (#3819).anchor deployto upload the IDL to the cluster by default unless--no-idlis passed (#3863).Programtype allowingProgram<'info>for executable-only validation (#3878).solana-invokeinstead ofsolana_cpi::invoke(#3900).solana-clientfromanchor-clientandcli(#3877).errorstodeclare_program(#3757).hookssection toAnchor.toml(#3862).Fixes
nodeto 20.18.0 LTS (#3687).recentin migration scripts (#3725).provider.clusterinkeys synccommand (#3761).realloc,store_current_indexand clippy warnings (#3819).Breaking
anchor verifyto usesolana-verifyunder the hood, adding automatic installation via AVM, local path support, and future-proof argument passing (#3768).anchor publishcommand (#3795).v0.31.1Compare Source
This release uses a new docker image found at
solanafoundation/anchorfor theanchor verifycommand. New images will be pushed to this organization in the future.Releases for anchor will also be published under the
solanafoundationGithub organization from now on.Features
backpackapp/buildDocker image withsolanafoundation/anchor(#3619).Providerrequire publicKey instead of wallet in accounts resolver (#3613)Fixes
proc-macro2usage for latest nightly (#3663)Breaking
v0.31.0Compare Source
Features
solana_account_decoderdep public in anchor client (#3455).options.blockhashtoProvider.sendAndConfirm(#3070).commitmentparameter toProgram.addEventListener(#3052).cargoargs to IDL generation when building program or IDL (#3059).idl-buildfeature (#3061).Discriminatortrait fromprelude(#3075).Accountutility type to get accounts from bytes (#3091).declare_program!(#3103).ThreadSafeSignertrait public (#3107).dispatchfunction to support dynamic discriminators (#3104).try_entryfunction (#3109).withdraw_withheld_tokens_from_accountsinstruction (#3128).walletproperty to theProviderinterface (#3130).anchor-spl/idl-buildis missing (#3133).internal_rpcmethod formockfeature (#3135).#[instruction]attribute proc-macro to override default instruction discriminators (#3137).#[account](#3144).discriminatorargument to#[account]attribute (#3149).discriminatorargument to#[event]attribute (#3152).--no-idloption to thetestcommand (#3175).burn_checked,mint_to_checkedandapprove_checkedinstructions (#3186).agave-installwhensolana_versionis>= 1.18.19(#3185).IdlBuilder(#3188).cleancommand also remove the.anchordirectory (#3192).#[interface]attribute (#3195).LazyAccount(#3194).usecommand (#3230).solana-programdependency (#3250).idl-buildfeature exists when using theidl buildcommand (#3273).idl buildcommand (#3275).idl buildcommand (#3283).--program-idoption toidl convertcommand (#3309).declare_program!(#3311).installandlistcommands (#3326).package-managerflag ininitcommand to set package manager field in Anchor.toml (#3328).zeroconstraint (#3365).--max-retriesoption to thedeploycommand (#3354).anchor-debugfeature (#3511).Fixes
alignrepr support indeclare-program!(#3056).getrandomdependency (#3072).InitSpacesupport unnamed & unit structs (#3084).ownerconstraint withBoxed accounts (#3087).--no-idloption is passed (#3093).--lockedargument using Rust v1.80 due totimecrate issue (#3143).crypto-hashdependency (#3171).viewmethod (#3177).arrayrefdependency (#3201).addressconstraint with non-const expressions (#3216).Program(#3228).initconstraints to reduce the stack usage oftry_accounts(#2939).cfgattribute above the instructions (#2339).ANCHOR_LOGon failure and improve build error message (#3284).declare_program!(#3287).declare_program!(#3290).engines.nodeto>= 17(#3301).rustc 1.79.0when installing versions older than v0.31 (#3315).shellcommand failing due to outdated program initialization (#3351).cpifeature instructions not accounting for discriminator overrides (#3376).verify(#3398).zeroaccounts to be unique (#3409).zeroaccounts againstinitaccounts (#3422).provider.cluster(#3428).workspace(#3450).declare_program!(#3458).program::seedresolution (#3474).derives andreprs to type alias definitions indeclare_program!(#3504).std::process::exitusage (#3544).Pubkeyconstants withseeds::program(#3559).declare_program!(#3567).seeds::program(#3570).dataas an instruction parameter name indeclare_program!(#3574).anchor.workspacetemplates (#3581).Breaking
bpftarget support inhashfeature (#3078).tokiosupport toRequestBuilderwithasyncfeature (#3057).EventDatatrait (#3083).async_rpcmethod (#3053).Discriminatortrait impl when using thezeroconstraint (#3118).DISCRIMINATOR_SIZEconstant (#3120).#[account]attribute arguments no longer parses identifiers as namespaces (#3140).token_program_idtoprogram_id(#3076).discriminatormethod fromDiscriminatortrait (#3163).nodeto 20.16.0 LTS (#3179).Programconstructor'sidlparameter type toany(#3181).borsh 0.9support (#3199).typescriptto5.5.4and remove the generic parameters ofSimulateResponse(#3221).StateCoder(#3224).warp_slot(#3235).EventIndex(#3244).dexfeature (#3257).typescriptversion of templates to v5 (#3480).snake-casedependency (#3507).v0.30.1Compare Source
Features
RUSTUP_TOOLCHAINenvironment variable (#2941).AVM_HOMEenvironment variable (#2917).avm listwhen GitHub API rate limits are reached (#2962)--no-installoption to theinitcommand (#2945).TryFromIntErrorforErrorto be able to propagate integer conversion errors (#2950).upgradecommand (#2998).spl-associated-token-accountcrate (#2999).declare_program!(#2997).idl convertcommand (#3009).idl typecommand (#3017).anchor_lang::pubkeymacro for declaringPubkeyconst values (#3021).anchor-syndependency (#3030).constof program ID todeclare_id!anddeclare_program!(#3019).Fixes
maxSupportedTransactionVersioninAnchorProvider.send*()methods (#2922).anchor init(#2929).Cargo.lockof the project when generating idls for external types (#2946).declare_program!(#2959).declare_program!(#2965).Vec<u8>type withdeclare_program!(#2966).ProgramError::ArithmeticOverflownot found error (#2975).declare_program!(#2967).declare_program!(#2977).unexpected_cfgsbuild warning (#2992).declare_program!(#2994).rust-versionfrom crate manifests (#3000).addressconstraint with field expressions (#3034).bytemuckunsafeaccount serialization withdeclare_program!(#3037).Breaking
v0.30.0Compare Source
See the Anchor 0.30 release notes for a high-level overview of how to update.
Features
initandnew(#2698).deploy(#2705).solana program deploycommand withanchor deploy(#2709).InstructionData::write_toimplementation (#2733).#[interface(..)]attribute for instruction discriminator overrides (#2728)..interface(..)method for instruction discriminator overrides (#2728).anchor-langand CLI version compatibility (#2753).idl closeaccepts optional--idl-addressparameter (#2760).workspace.membersandworkspace.exclude. (#2785).--test-templateoption forinitcommand (#2805).anchor testis able to run multiple commands (#2799).@coral-xyz/anchorpackage and CLI version compatibility (#2813).reprs (#2824).accountsPartialmethod to keep the oldaccountsmethod behavior (#2824).optsparameter ofAnchorProviderconstructor optional (#2843).--no-idlflag to thebuildcommand (#2847).prependoption to MethodBuilderpreInstructionsmethod (#2863).declare_program!macro (#2857).deactivate_featureflag tosolana-test-validatorconfig in Anchor.toml (#2872).docsfield for constants (#2887).Eventutility type to get events from bytes (#2897).Lamportstrait operations (#2907).Fixes
new_from_arraymethod toHash(#2682).resolver = "2") (#2676).provider.walletinAnchor.toml(#2696).anchor_versionoverride (#2704).shmemfeature enabled (#2722).localhostto127.0.0.1, NodeJS 17 IP resolution changes for IPv6 (#2725).try_to_vecusage while setting the return data in order to reduce heap memory usage (#2744)migratecommand not working without globalts-nodeinstallation (#2767).parse_logs_responseto prevent panics when more than 1 outer instruction exists in logs (#2856).stdsimdfeature compilation error fromahashwhen installing the CLI using newer Rust versions (#2867).solana-programdependency (#2900).TokenAccountandMintCopy(#2904).Breaking
cargo build-sbfthe default build command (#2694).overflow-checksflag (#2716).anchor-deprecated-statefeature (#2717).CLOSED_ACCOUNT_DISCRIMINATOR(#2726).Option<u8>rather thanu8(#2730).shared-memoryprogram (#2747).associated,account.associatedandaccount.associatedAddressmethods (#2749).idl upgradecommand closes the IDL buffer account (#2760).--jestoption from theinitcommand (#2805).idl-buildfeature in programCargo.toml(#2824).seedsfeature toresolutionand make it enabled by default (#2824).idl parsecommand (#2824).idl-parseandseedsfeatures (#2824).accountsmethod to no longer accept resolvable accounts (#2824).Programinstances use camelCase for everything (#2824).programIdparameter of theProgramconstructor (#2864).anchor-syncrate to the new IDL crate (#2882).#[non_exhaustive]to IDL enums (#2890).v0.29.0Compare Source
See the Anchor 0.29 release notes for a high-level overview of how to update.
Features
AccountInfo(#2656).get_lamports,add_lamportsandsub_lamportsmethods for all account types (#2552).DynSignerto simplify use ofClient<C> where <C: Clone + Deref<Target = impl Signer>>with Solana clap CLI utils that loadsSignerasBox<dyn Signer>(#2550).anchor buildstill uses parsing method to generate IDLs, useanchor idl buildto generate IDLs with the build method (#2011)..anchorversionfile to facilitate switching between different versions of theanchor-cli(#2553).anchor.workspace.myProgram,anchor.workspace.MyProgram... (#2579).mpl-token-metadatacrate (#2583).TokenRecordAccountfor pNFTs (#2597).Boxthe inner enums ofanchor_lang::error::Errorto optimizeanchor_lang::Result(#2600).Program.addEventListenermethod (#2627).IdlBuildtrait to implement IDL support for custom types (#2629).idl-buildfeature. IDL build method will not work without enabling this feature when usinganchor-spl(#2629).test.upgradeable,test.genesis.upgradeablesetting inAnchor.tomlto support testing upgradeable programs (#2642).1.17.0,1.16remains supported (#2645).anchor-cliinstallation from commit (#2659).toolchainproperty inAnchor.tomlto override Anchor and Solana versions (#2649).Fixes
assert(#2535).constin theInitSpacemacro (#2555).1.14(#2572).anchor build --no-docsadding docs to the IDL (#2575).associated_token::token_programconstraint (#2603).anchor accountcommand panicking outside of workspace (#2620).Breaking
idlfeature has been replaced withidl-build,idl-parseandidl-typesfeatures (#2011).parsemethod now returnsResult<Idl>instead ofResult<Option<Idl>>(#2582).mpl-token-metadatadependency to use the client SDK instead of the program crate (#2632).base64-jsdependency (#2635).IdlTypeDefinitionTyenum has a new variantAlias(#2637).1.14is no longer supported, minimum required Solana version is1.16.0(#2645).anchor_versionandsolana_versionproperty inAnchor.tomlthat 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.