[fractal/fmt: 27/27] Add rustfmt as a beautifier for Builder




commit 932eb64b362195e4be9782adf2fced6f8b377d70
Author: Alexandre Franke <afranke gnome org>
Date:   Mon Dec 14 20:24:23 2020 +0100

    Add rustfmt as a beautifier for Builder

 .beautifier/global.ini        | 2 ++
 .beautifier/rust/config.ini   | 7 +++++++
 .beautifier/rust/rustfmt.toml | 0
 3 files changed, 9 insertions(+)
---
diff --git a/.beautifier/global.ini b/.beautifier/global.ini
new file mode 100644
index 00000000..36822ced
--- /dev/null
+++ b/.beautifier/global.ini
@@ -0,0 +1,2 @@
+[rust]
+map = rust
diff --git a/.beautifier/rust/config.ini b/.beautifier/rust/config.ini
new file mode 100644
index 00000000..833d9a30
--- /dev/null
+++ b/.beautifier/rust/config.ini
@@ -0,0 +1,7 @@
+[global]
+default = rustfmt
+
+[rustfmt]
+command-pattern = cargo fmt -- @s@
+config = rustfmt.toml
+name = rustfmt
diff --git a/.beautifier/rust/rustfmt.toml b/.beautifier/rust/rustfmt.toml
new file mode 100644
index 00000000..e69de29b


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]