mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-23 02:40:13 +02:00
Some minor improvements to an already-merged PR (#2688) on the task automation via xtask. Main ones being: - Adding more explanatory comments about what the xtask package is and what it does - Using Clap for CLI arg parsing - Using Anyhow for error handling --------- Co-authored-by: Eric Githinji <egithinji@google.com>
10 lines
420 B
Markdown
10 lines
420 B
Markdown
# xtask
|
|
|
|
The purpose of the xtask binary is to enable cross platform task automation
|
|
within the project (somewhat similar to how `npm run` is used in Node.js
|
|
projects to run scripts). Please see
|
|
[cargo xtask](https://github.com/matklad/cargo-xtask) for more information.
|
|
|
|
To add support for a new task, add a new arm to the `match` in the
|
|
`execute_task` function, and add a new handler function that contains the logic.
|