fast-command 0.1.0

Simple implementation of `Command` to avoid fork + exec overhead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use fast_command::{Output, Command};

fn main() -> std::io::Result::<()> {
    let Output { status, stdout, stderr } = Command::new("echo hello").execute()?;

    println!("status = {status}");
    println!("stdout = {stdout:?}");
    println!("stderr = {stderr:?}");

    Ok(())
}