Forrest logo
back to context overview

rustfmt

List of commands for rustfmt:

  • rustfmt:tldr:30088 rustfmt: Check a file for formatting and display any changes on the console.
    $ rustfmt --check ${path-to-source-rs}
    try on your machine
    explain this command
  • rustfmt:tldr:9f5d6 rustfmt: Format a file, overwriting the original file in-place.
    $ rustfmt ${path-to-source-rs}
    try on your machine
    explain this command
  • rustfmt:tldr:c89df rustfmt: Backup any modified files before formatting (the original file is renamed with a `.bk` extension).
    $ rustfmt --backup ${path-to-source-rs}
    try on your machine
    explain this command
back to context overview