7 stable releases

2.0.3 Jan 20, 2023
2.0.2 Jan 7, 2022
1.1.2 Jan 5, 2022
1.1.0 Sep 10, 2021

#391 in Cargo plugins

31 downloads per month

MIT license

87KB
2.5K SLoC

Install

cargo install runcc

Usage

You can use cargo runcc --help to see detailed help messages.

with a config file

Use -c option to run with a config file

  • If no config file is specified, runcc will auto look for runcc.{json, yaml, yml, ron, toml} and package.metadata.runcc or workspace.metadata.runcc fields in Cargo.toml in current working directory.

    cargo runcc -c
    
  • If a directory is specified, runcc will look for those files in that directory

    cargo runcc -c .
    
  • If a file is specified, runcc will auto recognize formats from file extension. *.{json, yaml, yml, ron, toml} and Cargo.toml are supported.

    cargo runcc -c my-config.yml
    

with cli arguments

cargo runcc "command1" "command2 a b c"

Implementation Details

  • Why using tokio instead of std::process::Command and std::thread?

    std::process::Command doesn't support to be killed while being waited.

Dependencies

~5–15MB
~187K SLoC