Skip to content
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

[Feature Request] For Procedual Macros #5777

Closed
BlackAsLight opened this issue Jun 5, 2023 · 1 comment
Closed

[Feature Request] For Procedual Macros #5777

BlackAsLight opened this issue Jun 5, 2023 · 1 comment

Comments

@BlackAsLight
Copy link

Hello, at the moment these types of macros view! { cx, <Body /> } don't have any formatting by rustfmt, which leads other people to make their own fmt cli-tools for their specific macros. This in my opinion can be quite annoying, because not only does every library that makes use of these macros not come with their own fmt cli-tool, the ones that do can be buggy or lack the features to match the complexity that rustfmt offers.

I understand why rustfmt doesn't format the contents of these types of macros, as the content could take many forms, so
what I'd like to suggest is that rustfmt provide a way for the libraries to describe how their macros should be formatted by rustfmt. I don't know what type of technical details one would need to do to accomplish this, but I'd love to hear back your thoughts.

@calebcartwright
Copy link
Member

Thank you but I'm going to close as a duplicate of #8. There's loads of discussion in there, including your high level proposal and the technical blockers that prevent that from being a viable option.

@calebcartwright calebcartwright closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants