mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-02 05:04:39 +08:00
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>
28 lines
799 B
TOML
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/**",
|
|
]
|