cmichi / tokio-stdin-stdout

AsyncRead/AsyncWrite stdin/stdout for Tokio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tokio-stdin-stdout

AsyncRead/AsyncWrite stdin/stdout for Tokio

Documentation - more description there

Example:

let mut core = tokio_core::reactor::Core::new()?;

let stdin = tokio_stdin_stdout::stdin(0);
let stdout = tokio_stdin_stdout::stdout(0);

core.run(tokio_io::io::copy(stdin, stdout))?;

Alternatives

  1. tokio-stdin no AsyncRead, only stdin, byte by byte
  2. tokio-file-unix - better, but only Unix

About

AsyncRead/AsyncWrite stdin/stdout for Tokio


Languages

Language:Rust 100.0%