[fractal/fmt: 27/27] Add rustfmt as a beautifier for Builder
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fmt: 27/27] Add rustfmt as a beautifier for Builder
- Date: Mon, 4 Jan 2021 13:22:13 +0000 (UTC)
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]