Wulf / tsync

Synchronize rust and typescript types!
Other
116 stars 10 forks source link

tsync from other proc-macros? #8

Closed RossRogers closed 1 year ago

RossRogers commented 1 year ago

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?

Wulf commented 1 year ago

No, not with the current architecture. Maybe in the future though :)

AravindPrabhs commented 1 year ago

I also ran into this. I was able to cobble a hacky solution:

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"

Wulf commented 1 year ago

Closing this; feel free to re-open!