fast-command

Crates.iofast-command
lib.rsfast-command
version0.1.0
created_at2025-02-08 21:02:38.867302+00
updated_at2025-02-08 21:02:38.867302+00
descriptionSimple implementation of `Command` to avoid fork + exec overhead.
homepage
repositoryhttps://github.com/rakivo/fast-command
max_upload_size
id1548402
size5,803
Mark Tyrkba (rakivo)

documentation

README

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(())
}
Commit count: 1

cargo fmt