aboutsummaryrefslogtreecommitdiffstats
path: root/web/template/.rustfmt.toml
diff options
context:
space:
mode:
authormsi2025-11-13 12:02:56 -0300
committermsi2025-11-13 12:02:56 -0300
commitb245dfcf9dd441674b40605df41b2920c13b66f5 (patch)
tree30ea675b5a4fe2a11482891a931b22ea2c9f7a9f /web/template/.rustfmt.toml
parent9675d584f0c981d4300f6ca06635b3b660f07e99 (diff)
downloadtemplates-b245dfcf9dd441674b40605df41b2920c13b66f5.tar.gz
Start boilerplate axum web
Diffstat (limited to 'web/template/.rustfmt.toml')
-rw-r--r--web/template/.rustfmt.toml19
1 files changed, 19 insertions, 0 deletions
diff --git a/web/template/.rustfmt.toml b/web/template/.rustfmt.toml
new file mode 100644
index 0000000..3aff51c
--- /dev/null
+++ b/web/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"