echo_lines/
main.rs

1// This is free and unencumbered software released into the public domain.
2
3use async_flow::{Result, System};
4
5#[tokio::main(flavor = "current_thread")]
6pub async fn main() -> Result {
7    System::run(|s| {
8        let stdin = s.read_stdin::<String>();
9        let stdout = s.write_stdout::<String>();
10        s.connect(stdin, stdout);
11    })
12    .await
13}