Add rustfmt and taplo configuration files
This commit is contained in:
parent
bb10a0943f
commit
269787aff1
16
rustfmt.toml
Normal file
16
rustfmt.toml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Edition
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# Comments
|
||||||
|
format_code_in_doc_comments = true
|
||||||
|
normalize_comments = true
|
||||||
|
wrap_comments = true
|
||||||
|
|
||||||
|
# Imports
|
||||||
|
group_imports = "StdExternalCrate"
|
||||||
|
imports_granularity = "Crate"
|
||||||
|
imports_layout = "HorizontalVertical"
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
enum_discrim_align_threshold = 25
|
||||||
|
hex_literal_case = "Upper"
|
5
taplo.toml
Normal file
5
taplo.toml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[formatting]
|
||||||
|
align_entries = true
|
||||||
|
allowed_blank_lines = 1
|
||||||
|
column_width = 100
|
||||||
|
reorder_arrays = true
|
Loading…
Reference in New Issue
Block a user