Moving the generated builder types and/or their documentation #353
-
|
Hi! I have a library with a lot of structs that want builders on them, and Is there a way of accomplishing this? Moving the builder types to a different module than the 'original' type would do the trick, but I don't see anything in the documentation on how to do that (if it's possible at all). Applying Does anyone have any ideas on how to accomplish this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, this is quite a difficult problem to solve due to the limitations of proc macros and Rust's module syntax. I described this problem in greater detail in #214 with a workaround wrapper macro, which is ugly, and I'm not sure you'd want to go with that route. |
Beta Was this translation helpful? Give feedback.
Hi, this is quite a difficult problem to solve due to the limitations of proc macros and Rust's module syntax. I described this problem in greater detail in #214 with a workaround wrapper macro, which is ugly, and I'm not sure you'd want to go with that route.