This PR includes everything to parse out Account structs and then render IDL for them.
TypesParse
Rust types are parsed out for each struct field and then converted to the narrower IdlType.
Pubkey is treated specially when encountered as a CustomType.
File Discovery
Files with Rust code to be parsed are discovered even if they are referenced in the crate.
Attributes
The #[derive(ShankAccount)] attr was introduced (derive in order to allow to add Rust impls
later).
This PR includes everything to parse out Account structs and then render IDL for them.
TypesParse
Rust types are parsed out for each struct field and then converted to the narrower IdlType. Pubkey is treated specially when encountered as a CustomType.
File Discovery
Files with Rust code to be parsed are discovered even if they are referenced in the crate.
Attributes
The
#[derive(ShankAccount)]
attr was introduced (derive in order to allow to add Rust impls later).