1
Fork 0
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:
RGBCube 2023-12-30 10:41:57 +03:00
parent 6aba0ec76d
commit d262e42422
No known key found for this signature in database
2 changed files with 20 additions and 1 deletions

2
.gitignore vendored
View file

@ -5,7 +5,7 @@
!.gitignore !.gitignore
!Cargo.lock !Cargo.lock
!Cargo.toml
!*.md !*.md
!*.rs !*.rs
!*.toml

19
.rustfmt.toml Normal file
View 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