-
Notifications
You must be signed in to change notification settings - Fork 245
Closed
Labels
gen-rustRelated to bindings for Rust-compiled-to-WebAssemblyRelated to bindings for Rust-compiled-to-WebAssembly
Description
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!
peterhuene and arlyon
Metadata
Metadata
Assignees
Labels
gen-rustRelated to bindings for Rust-compiled-to-WebAssemblyRelated to bindings for Rust-compiled-to-WebAssembly