-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
28 lines (23 loc) · 1.32 KB
/
rustfmt.toml
File metadata and controls
28 lines (23 loc) · 1.32 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
# Unstable settings
# -----------------
# The settings below are marked as "unstable" in rustfmt, which means:
# 1. They may change behavior or be removed in future `rustfmt` versions without warning
# 2. They require using `rustfmt` with the nightly Rust toolchain
# 3. They may cause formatting inconsistencies when sharing code with others
# who use different `rustfmt` versions or the stable toolchain
# Enable unstable/nightly-only formatting features. This is required for
# rustfmt to enable the features below.
# See: https://rust-lang.github.io/rustfmt/?version=v1&search=#unstable_features
unstable_features = true
# Controls how imports are grouped together (at crate level)
# See: https://rust-lang.github.io/rustfmt/?version=v1&search=#imports_granularity
imports_granularity = "Crate"
# Groups imports into three categories: std, external crates, and local imports
# See: https://rust-lang.github.io/rustfmt/?version=v1&search=#group_imports
group_imports = "StdExternalCrate"
# Enables reordering of module declarations alphabetically
# See: https://rust-lang.github.io/rustfmt/?version=v1&search=#reorder_modules
reorder_modules = true
# Enables formatting of code blocks in documentation comments
# See: https://rust-lang.github.io/rustfmt/?version=v1&search=#format_code_in_doc_comments
format_code_in_doc_comments = true