Registry / async / tokio-process-stream

tokio-process-stream

JSON →
library0.4.1rscratesunverified

Wraps a tokio::process into a tokio::stream for async streaming of process output.

# Cargo.toml [dependencies] tokio-process-stream = "0.4.1"
INSTALL
IMPORT
SIG · TOKIO-PROCESS-STRE
T
tokio-process-stream
asyncrustv0.4.1
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.

ProcessStream
use tokio_process_stream::ProcessStream;

Creates a ProcessStream from a command and iterates over output lines.

use tokio_process_stream::ProcessStream; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let mut stream = ProcessStream::new("echo", &["hello"])?; while let Some(line) = stream.next().await { println!("{}", line?); } Ok(()) }
Debug
Known issues
gotchaRequires tokio runtime to be active
fix
Ensure you are using #[tokio::main] or have a tokio runtime running
affects: >=0.4.0
Upgrade
Version history
0.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
22
OpenAI (training)
2
Resources
tokio-process-stream — cargo add tokio-process-stream · libregistry