.rustfmt.toml 757 B

1234567891011121314151617181920212223242526
  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. style_edition = "2021"
  7. # Line endings will be converted to \n.
  8. newline_style = "Unix"
  9. wrap_comments = true
  10. # The "Default" setting has a heuristic which splits lines too aggresively.
  11. # We are willing to revisit this setting in future versions of rustfmt.
  12. # Bugs:
  13. # * https://github.com/rust-lang/rustfmt/issues/3119
  14. # * https://github.com/rust-lang/rustfmt/issues/3120
  15. use_small_heuristics = "Max"
  16. # Third party code is formatted upstream.
  17. ignore = [
  18. "third_party/rust/**/crate",
  19. "third_party/rust/chromium_crates_io/vendor",
  20. ]