introduce rust

This commit is contained in:
Mikaël Cluseau
2024-04-29 12:54:25 +02:00
parent 6e1cb57e03
commit dbfe2ef75c
46 changed files with 2816 additions and 30 deletions

11
src/cmd/init_input.rs Normal file
View File

@ -0,0 +1,11 @@
use crate::input;
pub async fn run() {
tokio::spawn(async {
if let Err(e) = input::forward_requests_from_socket().await {
eprintln!("failed to forwards requests from socket: {e}");
std::process::exit(1);
}
});
input::answer_requests_from_stdin().await;
}