forked from ratatui/ratatui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
23 lines (17 loc) · 717 Bytes
/
rustfmt.toml
File metadata and controls
23 lines (17 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Configuration for https://rust-lang.github.io/rustfmt/
edition = "2024"
# E.g. Foo { a, b, c }
use_field_init_shorthand = true
# Unstable options. These require a nightly compiler to use (cargo +nightly fmt).
# We choose a wider comment width, as this tends to make comments more readable than truncating at
# 80 characters.
wrap_comments = true
comment_width = 100
format_code_in_doc_comments = true
# `#[doc = "..."]` -> `/// ...`
normalize_doc_attributes = true
# We choose module granularity for imports as this tends to have the best balance between low
# linecount while making it simple to understand diffs
group_imports = "StdExternalCrate"
imports_granularity = "Module"
format_macro_matchers = true