Registry / async / tokio-process

tokio-process

JSON →
library0.2.5rscratesunverified

Asynchronous process management backed by futures, part of the Tokio ecosystem.

# Cargo.toml [dependencies] tokio-process = "0.2.5"
INSTALL
IMPORT
SIG · TOKIO-PROCESS
T
tokio-process
asyncrustv0.2.5
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 tokio_process::Command;

Run an external command asynchronously and capture its output

use tokio_process::Command; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let output = Command::new("echo").arg("hello").output().await?; println!("Output: {}", String::from_utf8_lossy(&output.stdout)); Ok(()) }
Debug
Known issues
gotchaRequires Tokio runtime to be active
fix
Use #[tokio::main] or manually create a runtime
affects: >= 0.2.0
Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
34
Amazon
1
Resources
tokio-process — cargo add tokio-process · libregistry