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