1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-29 03:27:44 +00:00
alejandra/rustfmt.toml
2025-02-08 12:44:29 -07:00

25 lines
762 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"
style_edition = "2021"
wrap_comments = true