Process management for compio.
This crate provides async process spawning and management capabilities for compio applications. It allows you to spawn child processes, interact with their stdio streams, and wait for completion asynchronously.
- Async process spawning and management
- Async stdio (stdin, stdout, stderr) access
- Cross-platform support (Unix and Windows)
- Integration with compio's completion-based IO model
- Optional Linux pidfd support for efficient process monitoring
Use compio directly with process feature enabled:
cargo add compio --features processExample:
use compio::process::Command;
let mut child = Command::new("echo")
.arg("Hello from compio!")
.spawn()?;
let status = child.wait().await?;
println!("Process exited with: {}", status);