[tasks.install-cargo-binstall]
script = "echo 'Checking cargo-binstall availability...'"
[tasks.install-nextest]
dependencies = ["install-cargo-binstall"]
command = "cargo"
args = ["binstall", "cargo-nextest", "--no-confirm"]
[tasks.install-llvm-cov]
dependencies = ["install-cargo-binstall"]
command = "cargo"
args = ["binstall", "cargo-llvm-cov", "--no-confirm"]
[tasks.install-cargo-release]
dependencies = ["install-cargo-binstall"]
command = "cargo"
args = ["binstall", "cargo-release", "--no-confirm"]
[tasks.install-git-cliff]
dependencies = ["install-cargo-binstall"]
command = "cargo"
args = ["binstall", "git-cliff", "--no-confirm"]
[tasks.tools]
dependencies = ["install-nextest", "install-llvm-cov"]
[tasks.fmt]
cwd = "."
workspace = false
command = "cargo"
args = ["fmt"]
[tasks.fmt-check]
cwd = "."
workspace = false
command = "cargo"
args = ["fmt", "--check"]
[tasks.clippy]
cwd = "."
workspace = false
command = "cargo"
args = ["clippy", "--all-targets", "--all-features", "--", "-D", "warnings"]
[tasks.build]
cwd = "."
workspace = false
command = "cargo"
args = ["build"]
[tasks.build-release]
cwd = "."
workspace = false
command = "cargo"
args = ["build", "--release"]
[tasks.test]
cwd = "."
workspace = false
dependencies = ["install-nextest"]
command = "cargo"
args = ["nextest", "run"]
[tasks.test-cargo]
cwd = "."
workspace = false
command = "cargo"
args = ["test"]
[tasks.uat]
workspace = false
script_runner = "@shell"
script = '''
cargo make ci
if [ -n "${1:-}" ]; then
cargo nextest run "$1"
fi
'''
[tasks.mr-test]
cwd = "."
workspace = false
dependencies = ["test"]
[tasks.mr-uat]
cwd = "."
workspace = false
dependencies = ["test"]
[tasks.constitution_bootstrap]
workspace = false
dependencies = ["install-nextest"]
command = "cargo"
args = ["nextest", "run", "test_bootstrap_creates_constitution"]
[tasks.constitution_template]
workspace = false
dependencies = ["install-nextest"]
command = "cargo"
args = ["nextest", "run", "test_constitution_template_content"]
[tasks.constitution_prd_new]
workspace = false
dependencies = ["install-nextest"]
command = "cargo"
args = ["nextest", "run", "test_constitution_prd_new"]
[tasks.constitution_prd_finalize]
workspace = false
dependencies = ["install-nextest"]
command = "cargo"
args = ["nextest", "run", "test_constitution_prd_finalize"]
[tasks.constitution_edit]
workspace = false
dependencies = ["install-nextest"]
command = "cargo"
args = ["nextest", "run", "test_constitution_edit"]
[tasks.constitution_violation_logging]
workspace = false
dependencies = ["install-nextest"]
command = "cargo"
args = ["nextest", "run", "test_constitution_violation_logging"]
[tasks.ci]
workspace = false
dependencies = ["fmt-check", "clippy", "test"]
[tasks.check-all]
workspace = false
dependencies = ["fmt", "test"]
[tasks.codecov]
cwd = "."
workspace = false
clear = true
dependencies = ["tools"]
command = "cargo"
args = ["llvm-cov", "nextest", "--lcov", "--output-path", "coverage.lcov"]
[tasks.codecov-html]
cwd = "."
workspace = false
clear = true
dependencies = ["tools"]
command = "cargo"
args = ["llvm-cov", "nextest", "--html"]
[tasks.build-linux]
cwd = "."
workspace = false
command = "cargo"
args = ["build", "--target", "x86_64-unknown-linux-gnu", "--release"]
[tasks.build-windows]
cwd = "."
workspace = false
command = "cargo"
args = ["build", "--target", "x86_64-pc-windows-gnu", "--release"]
[tasks.build-macos]
cwd = "."
workspace = false
command = "cargo"
args = ["build", "--target", "aarch64-apple-darwin", "--release"]
[tasks.build-wasm]
cwd = "."
workspace = false
command = "cargo"
args = ["build", "--target", "wasm32-wasip2", "--release"]
[tasks.release]
cwd = "."
workspace = false
dependencies = ["install-cargo-release"]
command = "cargo"
args = ["release", "--workspace", "--no-publish", "--execute"]
[tasks.changelog]
cwd = "."
workspace = false
dependencies = ["install-git-cliff"]
command = "git-cliff"
args = ["--output", "CHANGELOG.md"]
[tasks.publish-crates]
cwd = "."
workspace = false
script = '''
echo "Publishing microralph crate to crates.io..."
cargo publish --no-verify
'''
[tasks.run]
cwd = "."
workspace = false
command = "cargo"
args = ["run", "--", "${@}"]
[tasks.watch]
cwd = "."
workspace = false
script = '''
cargo watch -x "run -- status"
'''
[tasks.clean]
cwd = "."
workspace = false
command = "cargo"
args = ["clean"]