This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Use prettyplease
for codegen formatting
#1937
malobre
started this conversation in
Suggestions
Replies: 2 comments 1 reply
-
Oh, so this crate is a formatter for |
Beta Was this translation helpful? Give feedback.
1 reply
-
I haven't looked closely at |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working on #1932 where I need to format generated code, it is currently done by checking if
rustfmt
is installed and calling its binary:tools/xtask/src/lib.rs
Lines 52 to 61 in 7991631
D. Tolnay just published a new crate called
prettyplease
made for this use-case (pretty-printing generated code).According to
prettyplease
readme:rustfmt
syn
&proc-macro2
, which we already userustfmt
Thoughts ?
Beta Was this translation helpful? Give feedback.
All reactions