Add formating rules

This commit is contained in:
Remco Bloemen 2022-02-01 11:40:49 -08:00
parent 81e10b9c75
commit 2f06385c5c
2 changed files with 22 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
/target
.DS_STORE
*.profraw
commitments.json
.*

19
rustfmt.toml Normal file
View File

@ -0,0 +1,19 @@
# See: https://github.com/rust-lang/rustfmt/blob/master/Configurations.md
edition = "2021"
# group_imports = "One"
imports_granularity = "Crate"
use_field_init_shorthand = true
wrap_comments = true
comment_width = 80
struct_field_align_threshold = 20
enum_discrim_align_threshold = 20
condense_wildcard_suffixes = true
format_strings = true
format_macro_matchers = true
format_macro_bodies = true
normalize_comments = true
reorder_impl_items = true
format_code_in_doc_comments = true
overflow_delimited_expr = true
normalize_doc_attributes = true
hex_literal_case = "Lower"