coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

idl: Add separate spec crate #3036

Closed acheroncrypto closed 1 week ago

acheroncrypto commented 1 week ago

Problem

Making changes to the IDL crate, e.g. adding features such as the convert feature, would require bumping the version even if the spec itself doesn't change. We essentially have two options to fix this:

While both options seems viable, combined with the reasons explained in https://github.com/coral-xyz/anchor/pull/2901, the latter option seems to be more suitable.

Summary of changes

Add a separate anchor-lang-idl-spec crate that only contains the IDL type specification, and re-export it from the main IDL crate to keep backwards compatibility.

vercel[bot] commented 1 week ago

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.