-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Expand only macros that come from a specific crate #68
Comments
This would be a game-changer, because it would allow you to use cargo-expand to "inline" utility macros like thiserror. Right now a lot of manual effort is required to do this, because you either have to reimplement the macro functionality in plain code yourself or, if you're using cargo-expand, go through all the expanded stdlib macros ( So yeah, that would be pretty damn cool and make this tool like, at least twice more useful |
I would accept a PR to implement this. |
This would be incredible! When developing macros I have to fix up all the expanded panics, format!'s, etc.
|
Is there any development on this? If not I may look into attempting to do it myself and make a PR |
Would be good to be able to only expand specific macros and leave other source as is.
i.e.:
cargo expand --crate="my-crate-derive"
or
cargo expand --derive=MyTraitA,MyTraitB
at the very least would be good to not expand macros that come from std.
The text was updated successfully, but these errors were encountered: