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