aboutsummaryrefslogtreecommitdiff
path: root/Makefile.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-17 02:04:21 -0700
committerFuwn <[email protected]>2023-05-17 02:04:21 -0700
commitf16ac2bdf09ca1bf4fce5fb9563078744d3ddd73 (patch)
tree77a640b2378d5b45cb05f91863e24a6d1abec047 /Makefile.toml
parentci(docker): update toolchain (diff)
downloadlocus-f16ac2bdf09ca1bf4fce5fb9563078744d3ddd73.tar.xz
locus-f16ac2bdf09ca1bf4fce5fb9563078744d3ddd73.zip
chore(tasks): simplify formatter
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml24
1 files changed, 6 insertions, 18 deletions
diff --git a/Makefile.toml b/Makefile.toml
index c6b5a2e..f900f33 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -1,26 +1,14 @@
[config]
default_to_workspace = false
-[tasks.fmt]
-script_runner = "python"
-script_extension = "py"
-script = '''
-import glob
-import subprocess
-
-rustfmt_arguments = [
- "rustfmt",
- "--unstable-features",
- "--skip-children",
- "./build.rs"
-]
+[env]
+CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
-rustfmt_arguments.extend(glob.glob("./src/**/*.rs", recursive=True))
-rustfmt_arguments.extend(glob.glob("./amenadiel/**/*.rs", recursive=True))
-
-subprocess.run(rustfmt_arguments, shell=True)
-'''
+[tasks.fmt]
+args = ["fmt"]
+command = "cargo"
toolchain = "nightly"
+workspace = true
[tasks.check]
args = ["check", "--all-features"]