Crate rustfmt_wrapper
source · [−]Expand description
Use rustfmt
to format generated code:
let codegen = quote::quote!{ struct Foo { bar: String } };
let formatted: String = rustfmt_wrapper::rustfmt(codegen).unwrap();
Modules
Enums
Functions
Use the rustfmt
command to format the input.
Use the rustfmt
command to format the input with the given Config
.