saber-hq / anchor-gen

Generates an Anchor CPI crate from a JSON IDL.
https://crates.io/crates/anchor-gen
Apache License 2.0
105 stars 58 forks source link

How to find generated RUST code? #72

Closed qiluge closed 6 months ago

qiluge commented 6 months ago

I use anchor-gen in new crates:

image

And used in other crates:

image

But I cannot see the structure field. So, what is detail of generated code?

macalinao commented 6 months ago

You can expand the macro using something like cargo-expand.

macalinao commented 6 months ago

let me know if you still need help!