metaplex-foundation / shank

Extracts IDL from Solana Rust contracts
https://docs.rs/crate/shank_macro/latest
116 stars 23 forks source link

Fix comments generated by ShankAccount seeds #60

Open Juici opened 1 year ago

Juici commented 1 year ago

Comments were being interpreted as string literals in generated code instead of as comments.

VincentBerthier commented 2 months ago

Hello, Can we get this merged to fix the seeds problem?

febo commented 1 week ago

@Juici Did you try to use the syntax #[doc = ...] to render the comments? I think this will result in just a couple of files changed.

Juici commented 1 week ago

@Juici Did you try to use the syntax #[doc = ...] to render the comments? I think this will result in just a couple of files changed.

When I wrote the PR I just wanted to do a quick patch with minimal changes. Personally I think an approach using the quote! macro would be cleaner.