38 lines
669 B
TOML
38 lines
669 B
TOML
|
|
[config]
|
||
|
|
default_to_workspace = false
|
||
|
|
|
||
|
|
[tasks.format]
|
||
|
|
command = "cargo"
|
||
|
|
args = ["fmt"]
|
||
|
|
|
||
|
|
[tasks.format-check]
|
||
|
|
command = "cargo"
|
||
|
|
args = ["fmt", "--check"]
|
||
|
|
|
||
|
|
[tasks.lint]
|
||
|
|
command = "cargo"
|
||
|
|
args = ["clippy", "--all-targets", "--", "-D", "warnings"]
|
||
|
|
|
||
|
|
[tasks.test]
|
||
|
|
command = "cargo"
|
||
|
|
args = ["test"]
|
||
|
|
|
||
|
|
[tasks.audit]
|
||
|
|
command = "cargo"
|
||
|
|
args = ["audit"]
|
||
|
|
|
||
|
|
[tasks.build]
|
||
|
|
command = "cargo"
|
||
|
|
args = ["build", "--release"]
|
||
|
|
|
||
|
|
[tasks.install-hooks]
|
||
|
|
description = "One-time setup: point git at the tracked hooks in .githooks/"
|
||
|
|
command = "git"
|
||
|
|
args = ["config", "core.hooksPath", ".githooks"]
|
||
|
|
|
||
|
|
[tasks.ci]
|
||
|
|
dependencies = ["format-check", "lint", "test", "audit"]
|
||
|
|
|
||
|
|
[tasks.default]
|
||
|
|
alias = "ci"
|