Closed RossRogers closed 1 year ago
No, not with the current architecture. Maybe in the future though :)
I also ran into this. I was able to cobble a hacky solution:
has_tsync_attribute
to also check for the doc comments so those constructs are also considered.The "search" for "tsync" attributes has to be changed to be changed to recursed on modules and in my case impls as well.
The initial working solution: "https://github.com/AravindPrabhs/tsync/tree/amenable_to_cargo_expand"
Closing this; feel free to re-open!
If a proc-macro generates a struct, those generated structs are not exported, even if the
#[tsync]
annotation is on the generated struct. Is this possible to somehow accomplish with tsync's current architecture?