pdfium/.rustfmt.toml
Tom Sepez 72c48203af Take .rustfmt.toml from Chrome repository
Otherwise, `git cl format` will hit an error and stop formatting
anything once we put more rust code in PDFium.

Change-Id: I6bc1a8c8f6701495814c80632b1ea852c44d7dce
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/146750
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
2026-04-22 11:09:39 -07:00

28 lines
799 B
TOML

# This file defines the Rust style for automatic reformatting.
# See also https://rust-lang.github.io/rustfmt
# Rust language edition to be used by the parser.
edition = "2024"
# Version of the formatting rules to use.
style_edition = "2021"
# Line endings will be converted to \n.
newline_style = "Unix"
wrap_comments = true
# The "Default" setting has a heuristic which splits lines too aggresively.
# We are willing to revisit this setting in future versions of rustfmt.
# Bugs:
# * https://github.com/rust-lang/rustfmt/issues/3119
# * https://github.com/rust-lang/rustfmt/issues/3120
use_small_heuristics = "Max"
# Third party code is formatted upstream.
# Please use negative pattern (!path) for any path you do want to format.
ignore = [
"third_party/**",
"!third_party/blink/**",
]