Skip to content

linux-china/xtask-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Languages