.rustfmt.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. max_width = 100
  2. hard_tabs = false
  3. tab_spaces = 4
  4. newline_style = "Auto"
  5. indent_style = "Block"
  6. use_small_heuristics = "Default"
  7. fn_call_width = 60
  8. attr_fn_like_width = 70
  9. struct_lit_width = 18
  10. struct_variant_width = 35
  11. array_width = 60
  12. chain_width = 60
  13. single_line_if_else_max_width = 60
  14. single_line_let_else_max_width = 60
  15. wrap_comments = false
  16. format_code_in_doc_comments = false
  17. doc_comment_code_block_width = 100
  18. comment_width = 80
  19. normalize_comments = false
  20. normalize_doc_attributes = false
  21. format_strings = false
  22. format_macro_matchers = false
  23. format_macro_bodies = true
  24. skip_macro_invocations = []
  25. hex_literal_case = "Preserve"
  26. empty_item_single_line = true
  27. struct_lit_single_line = true
  28. fn_single_line = false
  29. where_single_line = false
  30. imports_indent = "Block"
  31. imports_layout = "Mixed"
  32. imports_granularity = "Preserve"
  33. group_imports = "Preserve"
  34. reorder_imports = true
  35. reorder_modules = true
  36. reorder_impl_items = false
  37. type_punctuation_density = "Wide"
  38. space_before_colon = false
  39. space_after_colon = true
  40. spaces_around_ranges = false
  41. binop_separator = "Front"
  42. remove_nested_parens = true
  43. combine_control_expr = true
  44. short_array_element_width_threshold = 10
  45. overflow_delimited_expr = false
  46. struct_field_align_threshold = 0
  47. enum_discrim_align_threshold = 0
  48. match_arm_blocks = true
  49. match_arm_leading_pipes = "Never"
  50. force_multiline_blocks = false
  51. fn_params_layout = "Tall"
  52. brace_style = "SameLineWhere"
  53. control_brace_style = "AlwaysSameLine"
  54. trailing_semicolon = true
  55. trailing_comma = "Vertical"
  56. match_block_trailing_comma = false
  57. blank_lines_upper_bound = 1
  58. blank_lines_lower_bound = 0
  59. edition = "2015"
  60. version = "One"
  61. inline_attribute_width = 0
  62. format_generated_files = true
  63. generated_marker_line_search_limit = 5
  64. merge_derives = true
  65. use_try_shorthand = false
  66. use_field_init_shorthand = false
  67. force_explicit_abi = true
  68. condense_wildcard_suffixes = false
  69. color = "Auto"
  70. unstable_features = false
  71. disable_all_formatting = false
  72. skip_children = false
  73. show_parse_errors = true
  74. error_on_line_overflow = false
  75. error_on_unformatted = false
  76. ignore = []
  77. emit_mode = "Files"
  78. make_backup = false