| Shahbaz Youssefi | 2a42e88 | 2025-10-22 14:23:10 | [diff] [blame] | 1 | # This file defines the Rust style for automatic reformatting. |
| 2 | # See also https://rust-lang.github.io/rustfmt |
| 3 | # |
| 4 | # ANGLE's rustfmt file mostly follows Chromium's, with the exception of line widths. |
| 5 | |
| 6 | # Rust language edition to be used by the parser. |
| 7 | edition = "2024" |
| 8 | # Version of the formatting rules to use. |
| 9 | style_edition = "2024" |
| 10 | # Line endings will be converted to \n. |
| 11 | newline_style = "Unix" |
| 12 | wrap_comments = true |
| 13 | comment_width = 100 |
| 14 | max_width = 100 |
| 15 | # The "Default" setting has a heuristic which splits lines too aggresively. |
| 16 | # We are willing to revisit this setting in future versions of rustfmt. |
| 17 | # Bugs: |
| 18 | # * https://github.com/rust-lang/rustfmt/issues/3119 |
| 19 | # * https://github.com/rust-lang/rustfmt/issues/3120 |
| 20 | use_small_heuristics = "Max" |