From 7000e764e6a321a7a7807c6ccafdc044fc166551 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Tue, 8 Aug 2023 21:02:56 +0800 Subject: [PATCH] chore: add rustfmt.toml --- rustfmt.toml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..69622ca3 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,31 @@ +color = "Never" +condense_wildcard_suffixes = true +edition = "2021" +enum_discrim_align_threshold = 99 +fn_single_line = true +format_code_in_doc_comments = false +format_generated_files = false +format_macro_matchers = true +format_macro_bodies = true +format_strings = false +hard_tabs = true +hex_literal_case = "Lower" +hide_parse_errors = true +imports_indent = "Visual" +imports_layout = "Horizontal" +imports_granularity = "Crate" +newline_style = "Unix" +normalize_comments = true +normalize_doc_attributes = false +overflow_delimited_expr = true +reorder_impl_items = true +group_imports = "StdExternalCrate" +reorder_modules = true +struct_field_align_threshold = 99 +tab_spaces = 2 +unstable_features = true +use_field_init_shorthand = true +use_small_heuristics = "Max" +use_try_shorthand = true +version = "Two" +wrap_comments = true