aboutsummaryrefslogtreecommitdiffstats
path: root/lib/template/.rustfmt.toml
diff options
context:
space:
mode:
authormsi2025-11-16 12:28:25 -0300
committermsi2025-11-16 12:28:25 -0300
commitcd7cf0434f173b3ac135f2678ab38d1bc82f19c4 (patch)
tree9171ea3384d62217fe29d906b43fca9ba9e693c3 /lib/template/.rustfmt.toml
parentc722f8281d0f19080f19928a69de950c1472cf94 (diff)
downloadtemplates-cd7cf0434f173b3ac135f2678ab38d1bc82f19c4.tar.gz
Add lib template
Diffstat (limited to 'lib/template/.rustfmt.toml')
-rw-r--r--lib/template/.rustfmt.toml19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/template/.rustfmt.toml b/lib/template/.rustfmt.toml
new file mode 100644
index 0000000..3aff51c
--- /dev/null
+++ b/lib/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"