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




commit 101168450b2f6726af1e320bc1c219ad8861583c
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]