add rustfmt config for rust template
This commit is contained in:
parent
f3de1c79e4
commit
ce9a8cab1d
1 changed files with 17 additions and 0 deletions
17
templates/rust/.rustfmt.toml
Normal file
17
templates/rust/.rustfmt.toml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
edition = "2024"
|
||||
merge_derives = true
|
||||
newline_style = "Unix"
|
||||
reorder_imports = true
|
||||
reorder_modules = true
|
||||
use_field_init_shorthand = true
|
||||
use_try_shorthand = true
|
||||
# unstable_features = true
|
||||
# format_code_in_doc_comments = true
|
||||
# format_macro_bodies = true
|
||||
# format_strings = true
|
||||
# float_literal_trailing_zero = "IfNoPostfix"
|
||||
# imports_granularity = "Crate"
|
||||
# overflow_delimited_expr = true
|
||||
# reorder_impl_items = true
|
||||
# group_imports = "StdExternalCrate"
|
||||
# wrap_comments = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue