rustfmt-snippet 0.1.2

Format given Rust code snippet with rustfmt
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 2.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kvinwang

Format given Rust code snippet with rustfmt

#Example

   let formated = rustfmt_snippet::rustfmt(
       r#"fn main() {
       }"#,
   )
   .unwrap();
   assert_eq!(formated, "fn main() {}\n");