From d0c5bd9a0b27710eb0b4e69880e57fb9d33844f8 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Tue, 17 Sep 2024 16:21:58 -0400 Subject: add rustfmt --- .rustfmt.toml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..700c0b5 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,44 @@ +blank_lines_upper_bound = 1 +brace_style = "SameLineWhere" +condense_wildcard_suffixes = true +control_brace_style = "AlwaysSameLine" +edition = "2018" +empty_item_single_line = true +enum_discrim_align_threshold = 25 +fn_args_layout = "Tall" +force_explicit_abi = true +force_multiline_blocks = false +format_macro_matchers = true +format_macro_bodies = true +hard_tabs = false +imports_indent = "Block" +imports_layout = "Vertical" +indent_style = "Block" +inline_attribute_width = 0 +match_arm_blocks = true +match_block_trailing_comma = true +max_width = 100 +merge_derives = true +imports_granularity="Crate" +newline_style = "Unix" +normalize_comments = true +normalize_doc_attributes = true +overflow_delimited_expr = true +remove_nested_parens = true +reorder_impl_items = true +reorder_imports = true +reorder_modules = true +space_after_colon = true +space_before_colon = false +spaces_around_ranges = false +struct_field_align_threshold = 25 +struct_lit_single_line = true +tab_spaces = 4 +trailing_comma = "Vertical" +trailing_semicolon = true +type_punctuation_density = "Wide" +use_field_init_shorthand = true +use_small_heuristics = "Off" +use_try_shorthand = true +version = "Two" +where_single_line = false -- cgit v1.3.1