about summary refs log tree commit diff stats
path: root/rustfmt.toml
blob: d13b0ebffc7d8a2b260722b841434186f8d1d1d2 (plain) (blame)
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
# yt - A fully featured command line YouTube client
#
# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of Yt.
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.

# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#imports_granularity
imports_granularity = "Crate"
group_imports = "StdExternalCrate"

# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#format_code_in_doc_comments
format_code_in_doc_comments = true

style_edition = "2024"
edition = "2024"

wrap_comments = true
format_strings = true

error_on_line_overflow = true
error_on_unformatted = true

format_macro_matchers = true

reorder_impl_items = true