Skip to content

Instantly share code, notes, and snippets.

@glektarssza
Last active April 26, 2024 15:45
Show Gist options
  • Save glektarssza/aa71f97b617959a6a786107336b30408 to your computer and use it in GitHub Desktop.
Save glektarssza/aa71f97b617959a6a786107336b30408 to your computer and use it in GitHub Desktop.
rustfmt Configuration
unstable_features = true
edition = "2021"
newline_style = "Unix"
error_on_line_overflow = false
error_on_unformatted = false
brace_style = "SameLineWhere"
control_brace_style = "AlwaysSameLine"
max_width = 80
comment_width = 80
format_code_in_doc_comments = true
format_strings = false
normalize_doc_attributes = true
normalize_comments = true
force_explicit_abi = true
group_imports = "StdExternalCrate"
reorder_imports = true
reorder_modules = true
reorder_impl_items = true
remove_nested_parens = true
wrap_comments = true
version = "Two"
trailing_semicolon = true
trailing_comma = "Never"
tab_spaces = 4
hard_tabs = false
spaces_around_ranges = false
space_after_colon = true
space_before_colon = false
print_misformatted_file_names = true
merge_derives = true
indent_style = "Block"
imports_indent = "Block"
imports_layout = "Mixed"
hex_literal_case = "Upper"
imports_granularity = "Crate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment