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

idl: Add IdlBuilder #3188

Merged
merged 2 commits into from
Aug 22, 2024
Merged

Conversation

acheroncrypto
Copy link
Collaborator

Problem

Adding a new parameter to the build_idl function is a breaking change. For example, in #3059, adding the cargo_args parameter required adding a whole new function to keep the API backwards compatible. This can be avoided by using a builder struct instead.

Summary of changes

  • Add IdlBuilder to generate IDLs using the builder pattern
  • Deprecate build_idl
  • Remove build_idl_with_cargo_args (not a breaking change since we don't have a release with this function)

Copy link

vercel bot commented Aug 22, 2024

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

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added idl related to the IDL, either program or client side feature labels Aug 22, 2024
@acheroncrypto acheroncrypto merged commit 84fdf31 into coral-xyz:master Aug 22, 2024
0 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature idl related to the IDL, either program or client side
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant