Skip to content

Instantly share code, notes, and snippets.

@Yoplitein
Created September 1, 2024 06:40
Show Gist options
  • Save Yoplitein/e9eac0d34a0ab5c43f899bee313b4880 to your computer and use it in GitHub Desktop.
Save Yoplitein/e9eac0d34a0ab5c43f899bee313b4880 to your computer and use it in GitHub Desktop.
rustfmt configuration
edition = "2021"
binop_separator = "Back"
condense_wildcard_suffixes = true
format_strings = true
group_imports = "StdExternalCrate"
hard_tabs = true
hex_literal_case = "Upper"
imports_granularity = "Module"
imports_layout = "HorizontalVertical"
indent_style = "Block"
match_block_trailing_comma = true
newline_style = "Unix"
normalize_comments = false
normalize_doc_attributes = true
reorder_impl_items = true
spaces_around_ranges = true
use_field_init_shorthand = true
wrap_comments = true
where_single_line = false
# use_small_heuristics = "Off"
max_width = 100
array_width = 20
# attr_fn_like_width = 75
# chain_width = 20
# fn_call_width = 20
# single_line_if_else_max_width = 75
# struct_lit_width = 20
# struct_variant_width = 35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment