-
-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please don't clutter the target
directory
#594
Comments
Previous (stale) issue: #531 The file exports are not needed, but I personally believe all macros should do this so developers can see what the code is that is generated. It's something that is copied from https://rtic.rs/1/book/en/ Would exporting them to a folder like |
That would already be a big improvement, yes |
How does this approach compare to |
In my experience,
See, for example: dtolnay/cargo-expand#11 I've independently done a similar thing with my own proc macros, where they have the ability to write out their own expansions to the filesystem, and have found it very useful. I didn't think to unconditionally generate the outputs and put them in a subdirectory of the |
@trevyn virtue 0.0.11 is now released |
Using the derive macros from
2.0.0-rc.1
leads to atarget
folder like the following:This seems a bit messy. A solution could be to either not have side effects and generate the code on the fly (I didn't read the proc macro code, so I'm not sure how they work concretely, and what the files are used for), or alternatively to use a dedicated directory.
The text was updated successfully, but these errors were encountered: