coral-xyz / anchor

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

idl: Add `#[non_exhaustive]` to IDL enums #2890

Closed acheroncrypto closed 6 months ago

acheroncrypto commented 6 months ago

Problem

Some of the IDL enums can be extended in the future, however, extending them would be a breaking change.

Summary of changes

Add #[non_exhaustive] attribute to the IdlSerialization, IdlRepr and IdlType enum in order to be able to add new variants without causing a breaking change.

vercel[bot] commented 6 months 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.