runcc

Crates.ioruncc
lib.rsruncc
version2.0.3
sourcesrc
created_at2021-09-09 19:34:42.013824
updated_at2023-01-20 17:36:16.6204
descriptionrun commands concurrently with rust and cargo
homepagehttps://github.com/runcc-rs/runcc
repositoryhttps://github.com/runcc-rs/runcc
max_upload_size
id448996
size111,119
(EqualMa)

documentation

README

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.

Commit count: 67

cargo fmt