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§
- rustfmt
- Use the
rustfmt
command to format the input. - rustfmt_
config - Use the
rustfmt
command to format the input with the givenConfig
.