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§

config

Enums§

Error

Functions§

rustfmt
Use the rustfmt command to format the input.
rustfmt_config
Use the rustfmt command to format the input with the given Config.