-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrustfmt.toml
41 lines (38 loc) · 1.47 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
# 🐻❄️📦 charted-server: Free, open source, and reliable Helm Chart registry made in Rust
# Copyright 2022-2025 Noelware, LLC. <team@noelware.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The `rustfmt.toml` configuration file does use Nightly features, which
# is OK since we are pointed to a Nightly release (via `rust-toolchain.toml`),
#
# Consumers who are only building the project don't need a Nightly toolchain
# required unless distributors use Clippy / rustfmt to check if a project's
# structure is ok like `nixpkgs`.
### STABLE FEATURES
array_width = 90
max_width = 115
match_arm_leading_pipes = "Preserve"
newline_style = "Unix"
single_line_let_else_max_width = 0
use_field_init_shorthand = true
use_try_shorthand = true
### NIGHTLY FEATURES
binop_separator = "Back"
combine_control_expr = true
comment_width = 90
condense_wildcard_suffixes = true
group_imports = "One"
imports_granularity = "Crate"
overflow_delimited_expr = true
reorder_impl_items = true
wrap_comments = true