summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorTim Oram <dev@mitmaro.ca>2022-01-05 09:16:18 -0330
committerTim Oram <dev@mitmaro.ca>2022-01-05 09:44:16 -0330
commit2e4b9f6312608f5f08c296a3ec51d34f9f962d2f (patch)
tree244ced034aff2d1029a4d87c52ce59f373128810 /Makefile.toml
parenta3b4458fdca527622f17657d9936f80640587643 (diff)
Disable the mod_module_files lint
This project uses mod.rs files, and will continue to do so. Also update the Makefile.toml file to ensure that stable and nightly Rust are updated, to catch these linting issues earlier.
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml20
1 files changed, 19 insertions, 1 deletions
diff --git a/Makefile.toml b/Makefile.toml
index 017b3c6..32c6345 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -3,12 +3,14 @@ skip_core_tasks = true
default_to_workspace = false
[tasks.build]
+dependencies = ["update-rust-stable"]
toolchain = "stable"
install_crate = false
command = "cargo"
args = ["build", "${@}"]
[tasks.build-release]
+dependencies = ["update-rust-stable"]
toolchain = "stable"
install_crate = false
command = "cargo"
@@ -17,10 +19,11 @@ args = ["build", "--release", "${@}"]
[tasks.build-deb]
toolchain = "stable"
command = "cargo"
-dependencies = ["build-release"]
+dependencies = ["update-rust-stable", "build-release"]
args = ["deb"]
[tasks.clean]
+dependencies = ["update-rust-stable"]
toolchain = "stable"
install_crate = false
command = "cargo"
@@ -52,6 +55,7 @@ dependencies = [
]
[tasks.docs-stable]
+dependencies = ["update-rust-stable"]
toolchain = "stable"
command = "cargo"
args = [
@@ -62,6 +66,7 @@ args = [
]
[tasks.docs-nightly]
+dependencies = ["update-rust-nightly"]
toolchain = "nightly"
ignore_errors = true
command = "cargo"
@@ -79,6 +84,7 @@ dependencies = [
]
[tasks.lint-stable]
+dependencies = ["update-rust-stable"]
toolchain = "stable"
command = "cargo"
args = [
@@ -89,6 +95,7 @@ args = [
]
[tasks.lint-nightly]
+dependencies = ["update-rust-nightly"]
toolchain = "nightly"
ignore_errors = true
command = "cargo"
@@ -100,6 +107,7 @@ args = [
]
[tasks.format]
+dependencies = ["update-rust-nightly"]
toolchain = "nightly"
command = "cargo"
args = [
@@ -111,6 +119,7 @@ args = [
]
[tasks.licenses]
+dependencies = ["update-rust-nightly"]
toolchain = "nightly"
script = ['''
cargo +nightly about generate "docs/licenses.hbs" > "docs/licenses.html"
@@ -123,7 +132,16 @@ command = "scripts/add-lints.bash"
command = "scripts/publish.bash"
[tasks.test]
+dependencies = ["update-rust-stable"]
toolchain = "stable"
install_crate = false
command = "cargo"
args = ["test", "--workspace"]
+
+[tasks.update-rust-stable]
+command = "rustup"
+args = ["update", "stable"]
+
+[tasks.update-rust-nightly]
+command = "rustup"
+args = ["update", "nightly"]