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
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}
andpackage.metadata.runcc
orworkspace.metadata.runcc
fields inCargo.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}
andCargo.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
andstd::thread
?std::process::Command
doesn't support to be killed while being waited.
Dependencies
~5–15MB
~187K SLoC