You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dzmitry-lahoda can you elaborate an example of how you see them captured?
I've seen an example where doc comments needed to be propagated from derive macro input to doc comments in derive macro output, but it happened elsewhere, and i don't instantly understand how you or somebody else could find them useful with regard to BorshSchema.
I have a executable binary crate . Binary references my types from other lib crate. I get borsh schema container for enum attributed with BorshSchema.
For all declaration-definitions I generate borsh-TS classes.
Cheap way to add TS client for borsh-rs BorshSchema with some documentation for users would be to get doc comments from BorshSchema.
Other approaches seems overkill for me now - write own macro(which will somehow integrated with borsh derive macros so that new macro will have some hash map of definitions as they generated by borsh to get docs) or run full rust parser.
I am writing generator from BorshSchema.
Unfortunately it does not capture doc comments (as it seems).
Is it viable to add such capture to schema?
The text was updated successfully, but these errors were encountered: