mirror of
https://github.com/RGBCube/embd-rs
synced 2025-07-27 05:27:44 +00:00
Add formatter config
This commit is contained in:
parent
6aba0ec76d
commit
d262e42422
2 changed files with 20 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,7 +5,7 @@
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
||||||
!Cargo.lock
|
!Cargo.lock
|
||||||
!Cargo.toml
|
|
||||||
|
|
||||||
!*.md
|
!*.md
|
||||||
!*.rs
|
!*.rs
|
||||||
|
!*.toml
|
||||||
|
|
19
.rustfmt.toml
Normal file
19
.rustfmt.toml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
condense_wildcard_suffixes = true
|
||||||
|
enum_discrim_align_threshold = 25
|
||||||
|
force_explicit_abi = false
|
||||||
|
force_multiline_blocks = true
|
||||||
|
format_code_in_doc_comments = true
|
||||||
|
format_macro_matchers = true
|
||||||
|
format_strings = true
|
||||||
|
group_imports = "StdExternalCrate"
|
||||||
|
hex_literal_case = "Upper"
|
||||||
|
imports_granularity = "Crate"
|
||||||
|
imports_layout = "Vertical"
|
||||||
|
match_block_trailing_comma = true
|
||||||
|
newline_style = "Unix"
|
||||||
|
normalize_comments = true
|
||||||
|
normalize_doc_attributes = true
|
||||||
|
reorder_impl_items = true
|
||||||
|
unstable_features = true
|
||||||
|
use_try_shorthand = true
|
||||||
|
wrap_comments = true
|
Loading…
Add table
Add a link
Reference in a new issue