Cross-platform exec for Rust
⚡️ Unix CommandExt::exec but isomorphic
new
.arg
.cross_exec
🟦 Emulates process replacement behaviour on Windows
🐧 Uses native CommandExt::exec on Unix
Installation
Usage
Use .cross_exec() on a std::process::Command just like you would use .exec() on Unix.
use CommandExt;
use Command;
use Error;
Development
Why?
I wanted a cross-platform way to replace the current process with a new one for wrapper programs that just end up calling another program at the end.
This project is based on the exec_replace function from cargo-util.