summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cirrus.yml8
-rw-r--r--bors.toml1
-rw-r--r--rustfmt.toml1
3 files changed, 10 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index ae184f86..ee150f19 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -320,3 +320,11 @@ task:
check_script:
- cargo check
before_cache_script: rm -rf $CARGO_HOME/registry/index
+
+# Tasks that checks if the code is formatted right using `cargo fmt` tool
+task:
+ name: Rust Formatter
+ container:
+ image: rust:latest
+ setup_script: rustup +$TOOLCHAIN component add rustfmt
+ test_script: $TOOL +$TOOLCHAIN fmt --all -- --check \ No newline at end of file
diff --git a/bors.toml b/bors.toml
index 39368884..b6f81c33 100644
--- a/bors.toml
+++ b/bors.toml
@@ -33,6 +33,7 @@ status = [
"OpenBSD x86_64",
"Redox x86_64",
"Rust Stable",
+ "Rust Formatter",
"iOS aarch64",
"iOS x86_64",
"Illumos",
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 00000000..5c8d9318
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1 @@
+max_width = 80 \ No newline at end of file