From ae13afa1aeb8aaed94b1d72aa6207bbfe373dd52 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 16 Feb 2025 18:10:18 +0100 Subject: build(rustfmt.toml): Add --- crates/termsize/rustfmt.toml | 16 ---------------- rustfmt.toml | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 16 deletions(-) delete mode 100644 crates/termsize/rustfmt.toml create mode 100644 rustfmt.toml diff --git a/crates/termsize/rustfmt.toml b/crates/termsize/rustfmt.toml deleted file mode 100644 index a1f6495..0000000 --- a/crates/termsize/rustfmt.toml +++ /dev/null @@ -1,16 +0,0 @@ -# yt - A fully featured command line YouTube client -# -# Copyright (C) 2025 softprops -# SPDX-License-Identifier: MIT -# -# This file is part of Yt. -# -# You should have received a copy of the License along with this program. -# If not, see . - -# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#fn_params_layout -fn_params_layout = "Vertical" -# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#imports_granularity -imports_granularity = "Crate" -# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#format_code_in_doc_comments -format_code_in_doc_comments = true \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..d13b0eb --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,29 @@ +# yt - A fully featured command line YouTube client +# +# Copyright (C) 2025 Benedikt Peetz +# 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://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 -- cgit 1.4.1