[config] skip_core_tasks = true default_to_workspace = false # ---- BASIC ---- [tasks.watch] description = "Watch files and recompile the project on change" run_task = [ { name = [ "fmt", "clippy", "test" ] }, ] watch = true # ---- BUILD ---- [tasks.build] run_task = [ { name = "build_release", condition = { profiles = [ "production" ] } }, { name = "build_debug" }, ] [tasks.build_debug] command = "cargo" args = [ "build" ] [tasks.build_release] command = "cargo" args = [ "build", "--release" ] # ---- RUN ---- [tasks.run] run_task = [ { name = "run_release", condition = { profiles = [ "production" ] } }, { name = "run_debug" }, ] [tasks.run_debug] command = "cargo" args = [ "run" ] [tasks.run_release] command = "cargo" args = [ "run", "--release" ] # ---- LINT ---- [tasks.clippy] description = "Lint with Clippy" install_crate = { rustup_component_name = "clippy", binary = "cargo-clippy", test_arg = "--help" } command = "cargo" args = [ "clippy" ] [tasks.fmt] description = "Format with rustfmt" install_crate = { rustup_component_name = "rustfmt", binary = "rustfmt", test_arg = "-V" } command = "cargo" args = [ "fmt" ] # ---- TEST ---- [tasks.test] command = "cargo" args = [ "test" ]