linux-china / xtask-demo

Cargo xtask demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cargo xtask

cargo-xtask is way to add free-form automation to a Rust project, a-la make, npm run or bespoke bash scripts. The two distinguishing features of xtask are:

  • It doesn't require any other binaries besides cargo and rustc, it fully bootstraps from them
  • Unlike bash, it can more easily be cross-platform, as it doesn't use the shell.

Standard tasks

  • cargo xtask --help: list all available tasks, and output as following:
Tasks:
  hello - hello task
  dist - builds application and man pages

Tooling

  • devx: collection of useful utilities (spawning processes, git pre-commit hooks, etc.)
  • xshell: ergonomic "bash" scripting in Rust
  • duct: a library for running child processes with support for pipelines and IO redirection
  • xtaskops: Goodies for working with the xtask concept in Rust
  • cli-xtask: A collection of utility functions and command line interfaces for cargo-xtask

References

About

Cargo xtask demo


Languages

Language:Rust 100.0%