5 unstable releases
Uses old Rust 2015
0.3.1 | Sep 22, 2017 |
---|---|
0.3.0 | Jul 13, 2017 |
0.2.0 | Mar 26, 2016 |
0.1.1 | Mar 25, 2016 |
0.1.0 | Mar 25, 2016 |
#366 in Operating systems
46,057 downloads per month
Used in 46 crates
(40 directly)
9KB
97 lines
exec
: A Rust library to replace the running program with another
This is a simple Rust wrapper around execvp
. It can be used as follows:
let err = exec::Command::new("echo")
.arg("hello").arg("world")
.exec();
println!("Error: {}", err);
Note that if exec
returns, it will always return an error. There's also
a lower-level exec::execvp
function if you need to use it.
lib.rs
:
A simple wrapper around the C library's execvp
function.
For examples, see the repository.
We'd love to fully integrate this with std::process::Command
, but
that module doesn't export sufficient hooks to allow us to add a new
way to execute a program.
Dependencies
~230KB