Registry / async / tokio-pty-process

tokio-pty-process

JSON →
library0.4.0rscratesunverified

Interact with a child process through a pseudo-TTY, asynchronously using Tokio.

# Cargo.toml [dependencies] tokio-pty-process = "0.4.0"
INSTALL
IMPORT
SIG · TOKIO-PTY-PROCESS
T
tokio-pty-process
asyncrustv0.4.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.

PtyProcess
use tokio_pty_process::PtyProcess;

Creates a pseudo-TTY process and interacts with it asynchronously.

use tokio_pty_process::PtyProcess; #[tokio::main] async fn main() { let mut pty = PtyProcess::new("bash").await.unwrap(); pty.write("echo hello\n").await.unwrap(); let output = pty.read().await.unwrap(); println!("Output: {}", output); }
Debug
Known issues
gotchaRequires Tokio runtime to be active.
fix
Ensure you have a Tokio runtime (e.g., #[tokio::main]) when using this crate.
affects: >=0.4.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
34
OpenAI (training)
1
Resources
tokio-pty-process — cargo add tokio-pty-process · libregistry