-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
56 lines (49 loc) · 1.43 KB
/
rustfmt.toml
File metadata and controls
56 lines (49 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-License-Identifier: PMPL-1.0-or-later
# SPDX-FileCopyrightText: 2024-2026 ECHIDNA Project Contributors
#
# Rustfmt configuration for ECHIDNA
# Only stable-channel options — nightly-only options are commented below.
# Edition
edition = "2021"
# Line width
max_width = 100
# Imports (stable)
reorder_imports = true
reorder_modules = true
# Formatting (stable)
force_explicit_abi = true
hard_tabs = false
tab_spaces = 4
# Consistency
newline_style = "Unix"
remove_nested_parens = true
# Control flow
match_block_trailing_comma = true
use_small_heuristics = "Default"
# ── Nightly-only options (require `rustup run nightly cargo fmt`) ──
# To use these, run: RUSTFMT_EDITION=nightly cargo +nightly fmt
# comment_width = 100
# wrap_comments = true
# imports_granularity = "Crate"
# group_imports = "StdExternalCrate"
# fn_single_line = false
# where_single_line = false
# format_code_in_doc_comments = true
# format_macro_matchers = true
# format_strings = true
# normalize_comments = true
# normalize_doc_attributes = true
# overflow_delimited_expr = true
# indent_style = "Block"
# match_arm_blocks = true
# trailing_comma = "Vertical"
# trailing_semicolon = true
# space_after_colon = true
# space_before_colon = false
# spaces_around_ranges = false
# struct_lit_single_line = true
# blank_lines_lower_bound = 0
# blank_lines_upper_bound = 1
# doc_comment_code_block_width = 100
# error_on_line_overflow = false
# error_on_unformatted = false