mirror of
https://github.com/vacp2p/semaphore-rs.git
synced 2025-02-26 18:40:43 +00:00
Add formating rules
This commit is contained in:
parent
81e10b9c75
commit
2f06385c5c
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
/target
|
/target
|
||||||
.DS_STORE
|
*.profraw
|
||||||
|
commitments.json
|
||||||
|
.*
|
||||||
|
19
rustfmt.toml
Normal file
19
rustfmt.toml
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user