From a9674baaf977d6e5e2c41f810c57a1502492ba5a Mon Sep 17 00:00:00 2001 From: Sanandan Sashikumar Date: Tue, 18 Feb 2025 04:15:01 +0000 Subject: [PATCH] fix --- crates/cli/src/http_binder.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/http_binder.rs b/crates/cli/src/http_binder.rs index 6f1d7b9..575ca30 100644 --- a/crates/cli/src/http_binder.rs +++ b/crates/cli/src/http_binder.rs @@ -4,9 +4,13 @@ use hyper_util::{ rt::{TokioExecutor, TokioIo}, server, }; +use std::convert::Infallible; use std::net::SocketAddr; -use std::{convert::Infallible, path::PathBuf}; -use tokio::net::{TcpListener, UnixListener}; +#[cfg(unix)] // Unix sockets +use std::path::PathBuf; +use tokio::net::TcpListener; +#[cfg(unix)] // Unix sockets +use tokio::net::UnixListener; use tower::{Service, ServiceExt}; #[allow(dead_code)]