Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate anchor-lang to 0.31.0 #207

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 24, 2023

This PR contains the following updates:

Package Type Update Change
anchor-lang dependencies minor 0.28.0 -> 0.31.0
anchor-lang dependencies minor 0.27.0 -> 0.31.0

Release Notes

coral-xyz/anchor (anchor-lang)

v0.31.0

Compare Source

Features
  • client: Make solana_account_decoder dep public in anchor client (#​3455).
  • ts: Add optional options.blockhash to Provider.sendAndConfirm (#​3070).
  • ts: Add optional commitment parameter to Program.addEventListener (#​3052).
  • cli, idl: Pass cargo args to IDL generation when building program or IDL (#​3059).
  • cli: Add checks for incorrect usage of idl-build feature (#​3061).
  • lang: Export Discriminator trait from prelude (#​3075).
  • lang: Add Account utility type to get accounts from bytes (#​3091).
  • client: Add option to pass in mock rpc client when using anchor_client (#​3053).
  • lang: Get discriminator length dynamically (#​3101).
  • lang: Add non-8-byte discriminator support in declare_program! (#​3103).
  • client: Make ThreadSafeSigner trait public (#​3107).
  • lang: Update dispatch function to support dynamic discriminators (#​3104).
  • lang: Remove the fallback function shortcut in try_entry function (#​3109).
  • ts: Get discriminator lengths dynamically (#​3120).
  • client: Support non-8-byte discriminators (#​3125).
  • spl: Add withdraw_withheld_tokens_from_accounts instruction (#​3128).
  • ts: Add optional wallet property to the Provider interface (#​3130).
  • cli: Warn if anchor-spl/idl-build is missing (#​3133).
  • client: Add internal_rpc method for mock feature (#​3135).
  • lang: Add #[instruction] attribute proc-macro to override default instruction discriminators (#​3137).
  • lang: Use associated discriminator constants instead of hardcoding in #[account] (#​3144).
  • lang: Add discriminator argument to #[account] attribute (#​3149).
  • lang: Add discriminator argument to #[event] attribute (#​3152).
  • idl: Check ambiguous discriminators (#​3157).
  • idl: Disallow all zero account discriminators (#​3159).
  • cli: Support non-8-byte discriminators (#​3165).
  • idl: Disallow empty discriminators (#​3166).
  • cli: Add --no-idl option to the test command (#​3175).
  • spl: Add burn_checked, mint_to_checked and approve_checked instructions (#​3186).
  • cli: Migrate to agave-install when solana_version is >= 1.18.19 (#​3185).
  • idl: Add IdlBuilder (#​3188).
  • cli: Make clean command also remove the .anchor directory (#​3192).
  • lang: Deprecate #[interface] attribute (#​3195).
  • ts: Include unresolved accounts in the resolution error message (#​3207).
  • lang: Add LazyAccount (#​3194).
  • avm: Ask whether to install if the version is not installed with the use command (#​3230).
  • cli: Warn if a manifest has solana-program dependency (#​3250).
  • cli: Add completions command to generate shell completions via the clap_complete crate (#​3251).
  • cli: Always convert IDLs (#​3265).
  • cli: Check whether the idl-build feature exists when using the idl build command (#​3273).
  • cli: Build IDL if there is only one program when using the idl build command (#​3275).
  • cli: Add short alias for the idl build command (#​3283).
  • cli: Add --program-id option to idl convert command (#​3309).
  • lang: Generate documentation of constants in declare_program! (#​3311).
  • cli: Add support for fetching legacy IDLs (#​3324).
  • avm: Add short alias for install and list commands (#​3326).
  • avm: Add Windows support for renaming anchor binary (#​3325).
  • cli: Add optional package-manager flag in init command to set package manager field in Anchor.toml (#​3328).
  • cli: Add test template for Mollusk (#​3352).
  • idl: Disallow account discriminators that can conflict with the zero constraint (#​3365).
  • cli: Include recommended solana args by default and add new --max-retries option to the deploy command (#​3354).
  • avm: Make installation download binaries by default (#​3445).
  • idl: Support PDA resolution of call expressions that don't have any arguments (#​3485).
  • spl: Add anchor-debug feature (#​3511).
Fixes
  • idl: Make safety comment checks fail silently when program path env is not set (#​3045).
  • idl: Avoid interference from rust tests during IDL generation (#​3058).
  • lang: Fix align repr support in declare-program! (#​3056).
  • lang: Make stack frames slimmer on ATA creation (#​3065).
  • lang: Remove getrandom dependency (#​3072).
  • lang: Make InitSpace support unnamed & unit structs (#​3084).
  • lang: Fix using owner constraint with Boxed accounts (#​3087).
  • lang: Add a sanity check for unimplemented token extensions (#​3090).
  • cli: Skip IDL checks if --no-idl option is passed (#​3093).
  • lang: Remove unnecessary clone in account exit routine (#​3139).
  • cli: Fix installation with --locked argument using Rust v1.80 due to time crate issue (#​3143).
  • lang: Fix compilation warnings due to unused deprecated program id macros (#​3170).
  • ts: Remove crypto-hash dependency (#​3171).
  • ts: Improve error message of unsupported view method (#​3177).
  • idl: Fix panicking on tests (#​3197).
  • lang: Remove arrayref dependency (#​3201).
  • cli: Fix template code shouldn't escape (#​3210).
  • idl: Fix using address constraint with non-const expressions (#​3216).
  • idl: Fix using full path types with Program (#​3228).
  • lang: Use closures for init constraints to reduce the stack usage of try_accounts (#​2939).
  • lang: Allow the cfg attribute above the instructions (#​2339).
  • idl: Log output with ANCHOR_LOG on failure and improve build error message (#​3284).
  • lang: Fix constant bytes declarations when using declare_program! (#​3287).
  • lang: Fix using non-instruction composite accounts with declare_program! (#​3290).
  • idl: Fix instructions with tuple parameters not producing an error(#​3294).
  • ts: Update engines.node to >= 17 (#​3301).
  • cli: Use OS-agnostic paths (#​3307).
  • avm: Use rustc 1.79.0 when installing versions older than v0.31 (#​3315).
  • cli: Fix priority fee calculation causing panic on localnet (#​3318).
  • cli: Fix shell command failing due to outdated program initialization (#​3351).
  • idl: Fix detecting false-positives from doc comments during module path conversion (#​3359).
  • cli: Remove passing the rent sysvar account to IDL instructions (#​3372).
  • lang: Fix cpi feature instructions not accounting for discriminator overrides (#​3376).
  • idl: Ignore compiler warnings during builds (#​3396).
  • cli: Avoid extra IDL generation during verify (#​3398).
  • lang: Require zero accounts to be unique (#​3409).
  • lang: Deduplicate zero accounts against init accounts (#​3422).
  • cli: Fix custom provider.cluster (#​3428).
  • cli: Ignore non semver solana/agave releases to avoid panic (#​3432).
  • ts: Fix loading programs with numbers in their names using workspace (#​3450).
  • lang: Remove a potential panic while getting the IDL in declare_program! (#​3458).
  • cli: Fix altering user-provided lib names (#​3467).
  • idl: Fix missing program::seed resolution (#​3474).
  • lang: Fix adding derives and reprs to type alias definitions in declare_program! (#​3504).
  • idl: Fix using constant identifiers as generic arguments (#​3522).
  • client: Remove std::process::exit usage (#​3544).
  • idl: Fix using Pubkey constants with seeds::program (#​3559).
  • lang: Fix instructions with no accounts causing compilation errors when using declare_program! (#​3567).
  • idl: Fix using account or arg values for seeds::program (#​3570).
  • lang: Fix using data as an instruction parameter name in declare_program! (#​3574).
  • cli: Use camelCase for program name in anchor.workspace templates (#​3581).
Breaking
  • syn: Remove bpf target support in hash feature (#​3078).
  • client: Add tokio support to RequestBuilder with async feature (#​3057).
  • lang: Remove EventData trait (#​3083).
  • client: Remove async_rpc method (#​3053).
  • lang: Make discriminator type unsized (#​3098).
  • lang: Require Discriminator trait impl when using the zero constraint (#​3118).
  • ts: Remove DISCRIMINATOR_SIZE constant (#​3120).
  • lang: #[account] attribute arguments no longer parses identifiers as namespaces (#​3140).
  • spl: Rename metadata interface instruction fields from token_program_id to program_id (#​3076).
  • lang, ts: Remove "8 byte" requirement from discriminator error messages (#​3161).
  • lang: Remove discriminator method from Discriminator trait (#​3163).
  • docker: Upgrade node to 20.16.0 LTS (#​3179).
  • ts: Change the Program constructor's idl parameter type to any (#​3181).
  • lang, spl: Remove borsh 0.9 support (#​3199).
  • ts: Upgrade typescript to 5.5.4 and remove the generic parameters of SimulateResponse (#​3221).
  • ts: Remove StateCoder(#​3224).
  • cli: Accept integers for warp_slot (#​3235).
  • lang: Remove EventIndex (#​3244).
  • spl: Remove dex feature (#​3257).
  • client, lang, spl: Upgrade Solana to v2 and SPL to the latest (#​3219).
  • cli: Install Solana from anza.xyz domain in Docker verifiable builds (#​3271).
  • spl: Upgrade SPL deps to latest (#​3346).
  • cli: Upgrade typescript version of templates to v5 (#​3480).
  • ts: Remove snake-case dependency (#​3507).

v0.30.1

Compare Source

Features
  • idl: Allow overriding the idl build toolchain with the RUSTUP_TOOLCHAIN environment variable (#​2941).
  • avm: Support customizing the installation location using AVM_HOME environment variable (#​2917).
  • avm: Optimize avm list when GitHub API rate limits are reached (#​2962)
  • idl, ts: Add accounts resolution for associated token accounts (#​2927).
  • cli: Add --no-install option to the init command (#​2945).
  • lang: Implement TryFromIntError for Error to be able to propagate integer conversion errors (#​2950).
  • idl: Add ability to convert legacy IDLs (#​2986).
  • ts: Extract Anchor error codes into their own package (#​2983).
  • cli: Add additional solana arguments to the upgrade command (#​2998).
  • spl: Export spl-associated-token-account crate (#​2999).
  • lang: Support legacy IDLs with declare_program! (#​2997).
  • cli: Add idl convert command (#​3009).
  • cli: Add idl type command (#​3017).
  • lang: Add anchor_lang::pubkey macro for declaring Pubkey const values (#​3021).
  • cli: Sync program ids on the initial build (#​3023).
  • idl: Remove anchor-syn dependency (#​3030).
  • lang: Add const of program ID to declare_id! and declare_program! (#​3019).
  • idl: Add separate spec crate (#​3036).
Fixes
  • lang: Eliminate variable allocations that build up stack space for token extension code generation (#​2913).
  • ts: Fix incorrect maxSupportedTransactionVersion in AnchorProvider.send*() methods (#​2922).
  • cli: Use npm's configured default license for new projects made with anchor init (#​2929).
  • cli: add filename to 'Unable to read keypair file' errors (#​2932).
  • idl: Fix path resolution of the Cargo.lock of the project when generating idls for external types (#​2946).
  • idl: Fix potential panic on external type resolution (#​2954).
  • lang: Fix using defined types in instruction parameters with declare_program! (#​2959).
  • lang: Fix using const generics with declare_program! (#​2965).
  • lang: Fix using Vec<u8> type with declare_program! (#​2966).
  • lang: Fix ProgramError::ArithmeticOverflow not found error (#​2975).
  • lang: Fix using optional accounts with declare_program! (#​2967).
  • lang: Fix instruction return type generation with declare_program! (#​2977).
  • cli: Fix IDL write getting corrupted from retries (#​2964).
  • idl: Fix unexpected_cfgs build warning (#​2992).
  • lang: Make tuple struct fields public in declare_program! (#​2994).
  • Remove rust-version from crate manifests (#​3000).
  • cli: Fix upgradeable program clones (#​3010).
  • ts: Fix using IDLs that have defined types as generic arguments (#​3016).
  • idl: Fix generation with unsupported expressions (#​3033).
  • idl: Fix using address constraint with field expressions (#​3034).
  • lang: Fix using bytemuckunsafe account serialization with declare_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
  • cli: Allow force init and new (#​2698).
  • cli: Add verifiable option when deploy (#​2705).
  • cli: Add support for passing arguments to the underlying solana program deploy command with anchor deploy (#​2709).
  • lang: Add InstructionData::write_to implementation (#​2733).
  • lang: Add #[interface(..)] attribute for instruction discriminator overrides (#​2728).
  • ts: Add .interface(..) method for instruction discriminator overrides (#​2728).
  • cli: Check anchor-lang and CLI version compatibility (#​2753).
  • ts: Add missing IDL PDA seed types (#​2752).
  • cli: idl close accepts optional --idl-address parameter (#​2760).
  • cli: Add support for simple wildcard patterns in Anchor.toml's workspace.members and workspace.exclude. (#​2785).
  • cli: Add --test-template option for init command (#​2805).
  • cli: anchor test is able to run multiple commands (#​2799).
  • cli: Check @coral-xyz/anchor package and CLI version compatibility (#​2813).
  • cli: Accept package name as program name (#​2816).
  • cli: Add ability to build and test only a specified program (#​2823).
  • idl: Add new IDL spec (#​2824).
  • idl: Add support for reprs (#​2824).
  • idl: Add support for expression evaluation (#​2824).
  • idl: Add support for using external types when generating the IDL (#​2824).
  • idl, ts: Add unit and tuple struct support (#​2824).
  • idl, ts: Add generics support (#​2824).
  • ts: Add accountsPartial method to keep the old accounts method behavior (#​2824).
  • ts: Make opts parameter of AnchorProvider constructor optional (#​2843).
  • cli: Add --no-idl flag to the build command (#​2847).
  • cli: Add priority fees to idl commands (#​2845).
  • ts: Add prepend option to MethodBuilder preInstructions method (#​2863).
  • lang: Add declare_program! macro (#​2857).
  • cli: Add deactivate_feature flag to solana-test-validator config in Anchor.toml (#​2872).
  • idl: Add docs field for constants (#​2887).
  • idl: Store deployment addresses for other clusters (#​2892).
  • lang: Add Event utility type to get events from bytes (#​2897).
  • lang, spl: Add support for token extensions (#​2789).
  • lang: Return overflow error from Lamports trait operations (#​2907).
Fixes
  • syn: Add missing new_from_array method to Hash (#​2682).
  • cli: Switch to Cargo feature resolver(resolver = "2") (#​2676).
  • cli: Fix using user specific path for provider.wallet in Anchor.toml (#​2696).
  • syn: Fix IDL constant seeds parsing (#​2699).
  • cli: Display errors if toolchain override restoration fails (#​2700).
  • cli: Fix commit based anchor_version override (#​2704).
  • spl: Fix compilation with shmem feature enabled (#​2722).
  • cli: Localhost default test validator address changes from localhost to 127.0.0.1, NodeJS 17 IP resolution changes for IPv6 (#​2725).
  • lang: Eliminate temporary Vec allocations when serializing data with discriminant and set the default capacity to 256 bytes (#​2691).
  • lang: Allow custom lifetime in Accounts structure (#​2741).
  • lang: Remove try_to_vec usage while setting the return data in order to reduce heap memory usage (#​2744)
  • cli: Show installation progress if Solana tools are not installed when using toolchain overrides (#​2757).
  • ts: Fix formatting enums (#​2763).
  • cli: Fix migrate command not working without global ts-node installation (#​2767).
  • client, lang, spl, syn: Enable all features for docs.rs build (#​2774).
  • ts: Fix construction of field layouts for type aliased instruction arguments (#​2821)
  • idl: Fix IDL (#​2824).
  • idl, ts: Make casing consistent (#​2824).
  • ts: Fix not being able to use numbers in instruction, account, or event names in some cases due to case conversion (#​2824).
  • cli: Fix excessive test validator requests (#​2828).
  • client: Fix parse_logs_response to prevent panics when more than 1 outer instruction exists in logs (#​2856).
  • avm, cli: Fix stdsimd feature compilation error from ahash when installing the CLI using newer Rust versions (#​2867).
  • spl: Fix not being able to deserialize newer token 2022 extensions (#​2876).
  • spl: Remove solana-program dependency (#​2900).
  • spl: Make TokenAccount and Mint Copy (#​2904).
  • ts: Add missing errors (#​2906).
Breaking
  • cli: Make cargo build-sbf the default build command (#​2694).
  • cli: Require explicit overflow-checks flag (#​2716).
  • ts: Remove anchor-deprecated-state feature (#​2717).
  • lang: Remove CLOSED_ACCOUNT_DISCRIMINATOR (#​2726).
  • lang: Make bumps of optional accounts Option<u8> rather than u8 (#​2730).
  • spl: Remove shared-memory program (#​2747).
  • ts: Remove associated, account.associated and account.associatedAddress methods (#​2749).
  • cli: idl upgrade command closes the IDL buffer account (#​2760).
  • cli: Remove --jest option from the init command (#​2805).
  • cli: Require idl-build feature in program Cargo.toml (#​2824).
  • cli: Rename seeds feature to resolution and make it enabled by default (#​2824).
  • cli: Remove idl parse command (#​2824).
  • idl: Change IDL spec (#​2824).
  • syn: Remove idl-parse and seeds features (#​2824).
  • ts: Change accounts method to no longer accept resolvable accounts (#​2824).
  • ts: Program instances use camelCase for everything (#​2824).
  • ts: Remove discriminator functions (#​2824).
  • ts: Remove programId parameter of the Program constructor (#​2864).
  • idl, syn: Move IDL types from the anchor-syn crate to the new IDL crate (#​2882).
  • idl: Add #[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
  • lang: Change all accounts to have a reference to AccountInfo (#​2656).
  • lang: Add get_lamports, add_lamports and sub_lamports methods for all account types (#​2552).
  • client: Add a helper struct DynSigner to simplify use of Client<C> where <C: Clone + Deref<Target = impl Signer>> with Solana clap CLI utils that loads Signer as Box<dyn Signer> (#​2550).
  • lang: Allow CPI calls matching an interface without pinning program ID (#​2559).
  • cli, lang: Add IDL generation through compilation. anchor build still uses parsing method to generate IDLs, use anchor idl build to generate IDLs with the build method (#​2011).
  • avm: Add support for the .anchorversion file to facilitate switching between different versions of the anchor-cli (#​2553).
  • ts: Add ability to access workspace programs independent of the casing used, e.g. anchor.workspace.myProgram, anchor.workspace.MyProgram... (#​2579).
  • bench: Add benchmarking for program binary size (#​2591).
  • spl: Export mpl-token-metadata crate (#​2583).
  • spl: Add TokenRecordAccount for pNFTs (#​2597).
  • ts: Add support for unnamed(tuple) enum in accounts (#​2601).
  • cli: Add program template with multiple files for instructions, state... (#​2602).
  • bench: Add benchmarking for stack memory usage (#​2617).
  • lang: Box the inner enums of anchor_lang::error::Error to optimize anchor_lang::Result (#​2600).
  • ts: Add strong type support for Program.addEventListener method (#​2627).
  • syn: Add IdlBuild trait to implement IDL support for custom types (#​2629).
  • spl: Add idl-build feature. IDL build method will not work without enabling this feature when using anchor-spl (#​2629).
  • lang: Add support for type aliases in IDLs (#​2637).
  • cli: Add test.upgradeable, test.genesis.upgradeable setting in Anchor.toml to support testing upgradeable programs (#​2642).
  • cli, client, lang, spl: Update Solana toolchain and dependencies to 1.17.0, 1.16 remains supported (#​2645).
  • spl: Add support for memo program (#​2661).
  • avm: Add anchor-cli installation from commit (#​2659).
  • cli: Add toolchain property in Anchor.toml to override Anchor and Solana versions (#​2649).
Fixes
  • ts: Packages no longer depend on assert (#​2535).
  • lang: Support for const in the InitSpace macro (#​2555).
  • cli: Support workspace inheritance (#​2570).
  • client: Compile with Solana 1.14 (#​2572).
  • cli: Fix anchor build --no-docs adding docs to the IDL (#​2575).
  • ts: Load workspace programs on-demand rather than loading all of them at once (#​2579).
  • lang: Fix associated_token::token_program constraint (#​2603).
  • cli: Fix anchor account command panicking outside of workspace (#​2620).
  • lang: IDL named enum variant fields are now camelCase as opposed to snake_case, consistent with the other IDL types (#​2633).
  • avm: Remove excessive panics and handle the errors gracefully (#​2671).
Breaking
  • lang: Switch to type safe bumps in context (#​2542).
  • syn: idl feature has been replaced with idl-build, idl-parse and idl-types features (#​2011).
  • syn: IDL parse method now returns Result<Idl> instead of Result<Option<Idl>> (#​2582).
  • spl: Update mpl-token-metadata dependency to use the client SDK instead of the program crate (#​2632).
  • ts: Remove base64-js dependency (#​2635).
  • syn: IdlTypeDefinitionTy enum has a new variant Alias (#​2637).
  • cli, client, lang, spl: Solana 1.14 is no longer supported, minimum required Solana version is 1.16.0 (#​2645).
  • cli: anchor_version and solana_version property in Anchor.toml that was being used in verifiable builds are moved inside toolchain. 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Jun 24, 2023
@renovate renovate bot changed the title fix(deps): update rust crate anchor-lang to 0.28.0 fix(deps): update rust crate anchor-lang to 0.29.0 Oct 16, 2023
@renovate renovate bot force-pushed the renovate/anchor-lang-0.x branch from a8f21d3 to d950861 Compare October 16, 2023 19:54
@renovate renovate bot force-pushed the renovate/anchor-lang-0.x branch from d950861 to 323c835 Compare April 15, 2024 18:40
@renovate renovate bot changed the title fix(deps): update rust crate anchor-lang to 0.29.0 fix(deps): update rust crate anchor-lang to 0.30.0 Apr 15, 2024
@renovate renovate bot force-pushed the renovate/anchor-lang-0.x branch from 323c835 to 6aa210b Compare March 9, 2025 21:57
@renovate renovate bot changed the title fix(deps): update rust crate anchor-lang to 0.30.0 fix(deps): update rust crate anchor-lang to 0.31.0 Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants