1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2026-01-18 03:01:09 +00:00
alejandra/rustfmt.toml
2022-07-10 12:23:42 -06:00

25 lines
755 B
TOML

# https://github.com/kamadorueda/machine/blob/main/nixos-modules/editor/rustfmt.toml
edition = "2021"
enum_discrim_align_threshold = 999
# force_multiline_blocks = true
format_code_in_doc_comments = true
format_generated_files = true
format_macro_bodies = true
format_macro_matchers = true
format_strings = true
group_imports = "StdExternalCrate"
hex_literal_case = "Lower"
imports_granularity = "Item"
imports_layout = "Vertical"
# match_block_trailing_comma = true
max_width = 80
normalize_comments = true
normalize_doc_attributes = true
overflow_delimited_expr = true
reorder_impl_items = true
struct_field_align_threshold = 999
unstable_features = true
use_field_init_shorthand = true
use_small_heuristics = "Max"
version = "Two"
wrap_comments = true