compio-process 0.8.0

Processes for compio
Documentation

compio-process

MIT licensed crates.io docs.rs Check Test

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.

Features

  • 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

Usage

Use compio directly with process feature enabled:

cargo add compio --features process

Example:

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);