In continue of #605.
How ⚓ should support unnamed structs (syn::Feilds::Unnamed)? I see two ways:
- Add arrays support to IDL.
- Add a new derive macro (
AnchorType for example) which will add fields names to such structs:
#[derive(AnchorType)]
struct Z(#[field(name = x)] u64, #[field(name = y)] u64);
Additional derive macro looks better for me because it adds verbosity to JS and makes things more clear.
In continue of #605.
How ⚓ should support unnamed structs (syn::Feilds::Unnamed)? I see two ways:
AnchorTypefor example) which will add fields names to such structs:Additional derive macro looks better for me because it adds verbosity to JS and makes things more clear.