12 lines
294 B
Rust
12 lines
294 B
Rust
|
use tokio_fd::AsyncFd;
|
||
|
use tracing::info;
|
||
|
|
||
|
pub async fn run_server() -> Result<(AsyncFd, AsyncFd), anyhow::Error> {
|
||
|
info!("Starting STDIO server");
|
||
|
|
||
|
let stdin = AsyncFd::try_from(libc::STDIN_FILENO)?;
|
||
|
let stdout = AsyncFd::try_from(libc::STDOUT_FILENO)?;
|
||
|
|
||
|
Ok((stdin, stdout))
|
||
|
}
|