| Crates.io | fast-command |
| lib.rs | fast-command |
| version | 0.1.0 |
| created_at | 2025-02-08 21:02:38.867302+00 |
| updated_at | 2025-02-08 21:02:38.867302+00 |
| description | Simple implementation of `Command` to avoid fork + exec overhead. |
| homepage | |
| repository | https://github.com/rakivo/fast-command |
| max_upload_size | |
| id | 1548402 |
| size | 5,803 |
Command to avoid fork + exec overhead.Used in
rushbuild system.
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(())
}