aboutsummaryrefslogtreecommitdiffstats
path: root/cli/template/.rustfmt.toml
diff options
context:
space:
mode:
authormurilo ijanc2025-11-20 17:03:54 -0300
committermurilo ijanc2025-11-20 17:03:54 -0300
commitefda331aa8bf3fb18f7cea38418e5952f02852f2 (patch)
tree9c2f8d25b5788d19fe75ba92df9b6a8ab313cd88 /cli/template/.rustfmt.toml
parentcd7cf0434f173b3ac135f2678ab38d1bc82f19c4 (diff)
downloadtemplates-efda331aa8bf3fb18f7cea38418e5952f02852f2.tar.gz
Add template cli
Diffstat (limited to 'cli/template/.rustfmt.toml')
-rw-r--r--cli/template/.rustfmt.toml19
1 files changed, 19 insertions, 0 deletions
diff --git a/cli/template/.rustfmt.toml b/cli/template/.rustfmt.toml
new file mode 100644
index 0000000..3aff51c
--- /dev/null
+++ b/cli/template/.rustfmt.toml
@@ -0,0 +1,19 @@
+style_edition = "2024"
+max_width = 79
+# Make Rust more readable given most people have wide screens nowadays.
+# This is also the setting used by [rustc](https://github.com/rust-lang/rust/blob/master/rustfmt.toml)
+use_small_heuristics = "Max"
+
+# Use field initialize shorthand if possible
+use_field_init_shorthand = true
+
+reorder_modules = true
+
+# All unstable features that we wish for
+# unstable_features = true
+# Provide a cleaner impl order
+# reorder_impl_items = true
+# Provide a cleaner import sort order
+# group_imports = "StdExternalCrate"
+# Group "use" statements by crate
+# imports_granularity = "Crate"