#command #performance #execution #shell

fast-command

Simple implementation of Command to avoid fork + exec overhead

1 unstable release

0.1.0 Feb 8, 2025

#1618 in Development tools

Download history 108/week @ 2025-02-04 14/week @ 2025-02-11

122 downloads per month

MIT license

6KB
80 lines

fast-command

Simple implementation of Command to avoid fork + exec overhead.

Used in rush build system.

Simple example

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(())
}

Dependencies

~43KB