| 1 | # Optional local formatting profile. CI and pre-commit use rustfmt.toml. |
| 2 | # Apply manually with: |
| 3 | # cargo +nightly fmt -- --config-path rustfmt.unstable.toml |
| 4 | |
| 5 | style_edition = "2024" |
| 6 | chain_width = 80 |
| 7 | comment_width = 100 |
| 8 | use_field_init_shorthand = true |
| 9 | |
| 10 | # Unstable features go here. |
| 11 | unstable_features = true |
| 12 | |
| 13 | format_code_in_doc_comments = true |
| 14 | format_macro_matchers = true |
| 15 | normalize_comments = true |
| 16 | normalize_doc_attributes = true |
| 17 | imports_granularity = "Module" |
| 18 | group_imports = "StdExternalCrate" |
| 19 | reorder_impl_items = true |
| 20 | wrap_comments = true |