tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

.rustfmt.toml (757B)


      1 # 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.
      5 edition = "2021"
      6 
      7 # Version of the formatting rules to use.
      8 style_edition = "2021"
      9 
     10 # Line endings will be converted to \n.
     11 newline_style = "Unix"
     12 
     13 wrap_comments = true
     14 
     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"
     21 
     22 # Third party code is formatted upstream.
     23 ignore = [
     24  "third_party/rust/**/crate",
     25  "third_party/rust/chromium_crates_io/vendor",
     26 ]