aboutsummaryrefslogtreecommitdiffstats
path: root/.rustfmt.toml
diff options
context:
space:
mode:
authormurilo ijanc2025-11-19 17:27:44 -0300
committermurilo ijanc2025-11-19 17:27:44 -0300
commitb0f3ffd856f646b33f54b1e4092b7b78859cee15 (patch)
tree78c41b0978ff1ca14032212b06751f1262a9e260 /.rustfmt.toml
parent79bcb4364af34f57421dbbd759462a05dd8b70dc (diff)
downloadimgst-b0f3ffd856f646b33f54b1e4092b7b78859cee15.tar.gz
Add conf files
Diffstat (limited to '.rustfmt.toml')
-rw-r--r--.rustfmt.toml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml
new file mode 100644
index 0000000..3aff51c
--- /dev/null
+++ b/.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"