Registry / async / async-process

async-process

JSON →
library2.5.0rscratesunverified

Provides an async interface for spawning and managing child processes.

# Cargo.toml [dependencies] async-process = "2.5.0"
INSTALL
IMPORT
SIG · ASYNC-PROCESS
A
async-process
asyncrustv2.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Command
use async_process::Command;

Run a command asynchronously and capture its output.

use async_process::Command; async fn run() { let output = Command::new("echo").arg("hello").output().await.unwrap(); println!("{}", String::from_utf8_lossy(&output.stdout)); }
Debug
Known issues
gotchaRequires an async runtime (e.g., smol, tokio) to execute.
fix
Add a runtime dependency and ensure you are running inside an async context.
affects: *
Upgrade
Version history
2.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
38
Resources
async-process — cargo add async-process · libregistry