We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09cc70d commit a9674baCopy full SHA for a9674ba
1 file changed
crates/cli/src/http_binder.rs
@@ -4,9 +4,13 @@ use hyper_util::{
4
rt::{TokioExecutor, TokioIo},
5
server,
6
};
7
+use std::convert::Infallible;
8
use std::net::SocketAddr;
-use std::{convert::Infallible, path::PathBuf};
9
-use tokio::net::{TcpListener, UnixListener};
+#[cfg(unix)] // Unix sockets
10
+use std::path::PathBuf;
11
+use tokio::net::TcpListener;
12
13
+use tokio::net::UnixListener;
14
use tower::{Service, ServiceExt};
15
16
#[allow(dead_code)]
0 commit comments