.rustfmt.toml 671 B

1234567891011121314151617181920212223
  1. # This file defines the Rust style for automatic reformatting.
  2. # See also https://rust-lang.github.io/rustfmt
  3. # Rust language edition to be used by the parser.
  4. edition = "2021"
  5. # Version of the formatting rules to use.
  6. version = "Two"
  7. # Line endings will be converted to \n.
  8. newline_style = "Unix"
  9. # The "Default" setting has a heuristic which splits lines too aggresively.
  10. # We are willing to revisit this setting in future versions of rustfmt.
  11. # Bugs:
  12. # * https://github.com/rust-lang/rustfmt/issues/3119
  13. # * https://github.com/rust-lang/rustfmt/issues/3120
  14. use_small_heuristics = "Max"
  15. # Third party code is formatted upstream.
  16. ignore = [
  17. "third_party/rust",
  18. ]