fast-command 0.1.0

Simple implementation of `Command` to avoid fork + exec overhead.
Documentation
  • Coverage
  • 0%
    0 out of 11 items documented0 out of 5 items with examples
  • Size
  • Source code size: 5.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.18 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • rakivo/fast-command
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rakivo

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