diff options
| author | Fuwn <[email protected]> | 2023-05-17 02:04:21 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-17 02:04:21 -0700 |
| commit | f16ac2bdf09ca1bf4fce5fb9563078744d3ddd73 (patch) | |
| tree | 77a640b2378d5b45cb05f91863e24a6d1abec047 /Makefile.toml | |
| parent | ci(docker): update toolchain (diff) | |
| download | locus-f16ac2bdf09ca1bf4fce5fb9563078744d3ddd73.tar.xz locus-f16ac2bdf09ca1bf4fce5fb9563078744d3ddd73.zip | |
chore(tasks): simplify formatter
Diffstat (limited to 'Makefile.toml')
| -rw-r--r-- | Makefile.toml | 24 |
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"] |