Rust (Cargo)
Check and Fix
mono-dev
provides wrapper for clippy with common clippy flags
version: '3'
includes:
cargo:
taskfile: ../mono-dev/task/cargo.yaml
internal: true
tasks:
check:
cmds:
- task: cargo:clippy-all
- task: cargo:fmt-check
fix:
cmds:
- task: cargo:fmt-fix
dev-doc:
cmds:
- task: cargo:watch-serve-doc
Clippy fix is not automated, because IMO sometimes the suggestions lead to worse code style and should be ignored.
For other clippy
options, including feature flags and targets,
see the included Taskfile.
The dev-doc
command uses cargo-watch
and
live-server
to serve the documentation
generated by cargo doc
and watch for changes.
Test
There’s no wrapper for test - just run cargo test