Skip to content

idl: Bump version to 0.1.3#4453

Merged
jamie-osec merged 6 commits into
otter-sec:masterfrom
acheroncrypto:idl-bump-version-to-0.1.3
May 13, 2026
Merged

idl: Bump version to 0.1.3#4453
jamie-osec merged 6 commits into
otter-sec:masterfrom
acheroncrypto:idl-bump-version-to-0.1.3

Conversation

@acheroncrypto

@acheroncrypto acheroncrypto commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Problem

The main IDL crate includes a lot of changes that wasn't included in the v1 release. For example, v1 is still using the nightly compiler by default during IDL builds.

This problem doesn't affect automatically built CLI binaries in CI (since that's using the local crates, not the published ones) but affects everything else (including cargo install anchor-cli).

Summary of changes

Bump the anchor-lang-idl crate's version to 0.1.3.


Note: There were some changes that could be considered breaking technically, such as returning an error in the case of multiple error definitions (#4300), but all APIs stayed the same. Bumping to v0.2 would likely cause compatibility issues with v1.

The spec crate is untouched because:

  • The spec itself is the same
  • Bumping its version could cause compatibility issues with v1 without much benefit.

@vercel

vercel Bot commented Apr 23, 2026

Copy link
Copy Markdown

@acheroncrypto is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added dependencies Pull requests that update a dependency file idl related to the IDL, either program or client side fix Bug fix PR labels Apr 23, 2026

@0x4ka5h 0x4ka5h left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread idl/Cargo.toml Outdated
name = "anchor-lang-idl"
version = "0.1.2"
version = "0.1.3"
publish = false

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably we need to include this crate in publishing since otherwise 0.1.3 won't be available on crates.io; cc @trixter-osec to double check on the release side

Suggested change
publish = false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to use the release process for this, we'd need slightly more changes on top of enabling publish. Specifically, the bump-version.sh script should probably have --exclude anchor-lang-idl here so that it does not get bumped by cargo-release, and we'd need to double check that the trusted publishing is enabled on crates.io's side, though as this crate was excluded from the initial #4265 PR I am pretty sure it's not enabled.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That logic seems brittle. Hardcoding crate names in the bump-version.sh script also doesn't seem optimal, but we can have that as a short-term fix.

I've set the publish to true (same as the other published crates) and updated the script to exclude the IDL crates. However, I'm not sure whether we should also enable publishing the spec crate because bumping it unintentionally can break a lot of things. We should be extra careful bumping that crate and ideally manually check it since it's only a single crate.

@acheroncrypto

Copy link
Copy Markdown
Collaborator Author

Actually, CLI is unaffected by this change because CI builds locally and uploads without caring about the published versions. That being said, we should still publish the new version.

@acheroncrypto acheroncrypto requested a review from trixter-osec May 8, 2026 18:02

@trixter-osec trixter-osec left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release-side LGTM

@jamie-osec jamie-osec merged commit b8b31bd into otter-sec:master May 13, 2026
68 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file fix Bug fix PR idl related to the IDL, either program or client side

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants