You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to more structurally work around code formatting issues like those described in #878, we should consider switching from cargo fmt to Dtolnay's prettyplease crate. This crate was designed specifically to format codegen; meaning it will format faster, fail less frequently, but may occasionally result in subtly different formatting than what cargo fmt would have come up with.
I've used this succesfully in my http-bindgen crate, and I believe this might work better for wit-bindgen too. In practice I've yet to experience any divergent code formatting output. If we're worried about this becoming an issue however, we could always add a #![rustfmt::skip] attribute to the top of our generated files. Thanks!
The text was updated successfully, but these errors were encountered:
In order to more structurally work around code formatting issues like those described in #878, we should consider switching from
cargo fmt
to Dtolnay'sprettyplease
crate. This crate was designed specifically to format codegen; meaning it will format faster, fail less frequently, but may occasionally result in subtly different formatting than whatcargo fmt
would have come up with.I've used this succesfully in my
http-bindgen
crate, and I believe this might work better forwit-bindgen
too. In practice I've yet to experience any divergent code formatting output. If we're worried about this becoming an issue however, we could always add a#![rustfmt::skip]
attribute to the top of our generated files. Thanks!The text was updated successfully, but these errors were encountered: