[go: nahoru, domu]

blob: 0c2edf5faf0597654b5a806b4d6cf7e8efb8639e [file] [log] [blame]
Lukasz Anforowiczd2e6f502021-09-30 23:44:001# This file defines the Rust style for automatic reformatting.
2# See also https://rust-lang.github.io/rustfmt
3
4# Rust language edition to be used by the parser.
5edition = "2021"
6
7# Version of the formatting rules to use.
8version = "Two"
9
10# Line endings will be converted to \n.
11newline_style = "Unix"
12
Collin Bakerdbf27b42022-11-29 20:24:5713wrap_comments = true
14
Lukasz Anforowiczd2e6f502021-09-30 23:44:0015# 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
20use_small_heuristics = "Max"
danakjf59735d52021-11-02 22:49:0721
22# Third party code is formatted upstream.
23ignore = [
danakjf1615212022-11-23 20:11:1424 "third_party/rust/**/crate",
danakjf59735d52021-11-02 22:49:0725]