forked from hashintel/hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rustfmt.toml
28 lines (23 loc) · 826 Bytes
/
.rustfmt.toml
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
# General
edition = "2024" # Default: "2015"
style_edition = "2024" # Default: "2015"
unstable_features = true # Default: false
# Settings
reorder_impl_items = true # Default: false
use_field_init_shorthand = true # Default: false
use_try_shorthand = true # Default: false
wrap_comments = true # Default: false
# Parameters
comment_width = 100 # Default: 80
hex_literal_case = "Upper" # Default: "Preserve"
# Areas
format_code_in_doc_comments = true # Default: false
format_generated_files = true # Default: false
format_macro_matchers = true # Default: false
format_macro_bodies = true # Default: false
format_strings = true # Default: false
# Imports
imports_granularity = "Crate" # Default: "Preserve"
group_imports = "StdExternalCrate" # Default: "Preserve"
# Diagnostics
error_on_unformatted = true # Default: false