[tools]
"cargo:cargo-release" = "latest"
"cargo:markdown-extract" = "latest"
pre-commit = "4.5.1"
rust = { version = "1.92.0", components = "clippy,rustfmt" }
[tasks.test]
description = "Run all tests"
run = "cargo test --all-targets"
[tasks."lint:clippy"]
description = "Run clippy and fail on warnings"
run = "cargo clippy -- -D warnings"
[tasks."lint:format"]
description = "Check code formatting"
run = "cargo fmt --check"
[tasks."build:docs"]
description = "Build code documentation"
run = "cargo doc"
[tasks.man]
description = "View one of the man pages"
usage = '''
arg "<command>" help="The command to view the man page of"
'''
run = "man -l target/man/{{ usage.command }}.1"