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

Auto-generate Rust program structures / client from IDL #2012

Closed
gitmalong opened this issue Jun 29, 2022 · 5 comments
Closed

Auto-generate Rust program structures / client from IDL #2012

gitmalong opened this issue Jun 29, 2022 · 5 comments
Labels
idl related to the IDL, either program or client side lang

Comments

@gitmalong
Copy link

Hi!

Some projects do only provide an IDL or js client. Rust users have to manually create struct's based on the IDL in order to interact with the program. It would be very neat to generate such clients automatically from an IDL json file.

Thanks

@Arrowana
Copy link
Contributor

@billythedummy
Copy link
Contributor

@jordy25519
Copy link

for offchain clients based on anchor-gen: https://github.com/jordy25519/drift-account-indexer/tree/main/src/idl-gen

@acheroncrypto acheroncrypto added lang idl related to the IDL, either program or client side labels Apr 5, 2024
@acheroncrypto
Copy link
Collaborator

Added in #2857

@luca992
Copy link

luca992 commented Jul 17, 2024

Are there any examples of how to use this #2857 @acheroncrypto ? It's really not documented at all and I can't find a simple standalone example of how to parse some instruction data in minimal project anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idl related to the IDL, either program or client side lang
Projects
None yet
Development

No branches or pull requests

6 participants