summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/Cargo.toml2
-rw-r--r--runtime/ops/http.rs4
2 files changed, 4 insertions, 2 deletions
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml
index 12f8b5822..fb426afa6 100644
--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -73,7 +73,7 @@ log = "0.4.14"
lzzzz = '=0.8.0'
netif = "0.1.3"
notify = "=5.0.0-pre.12"
-once_cell = "=1.9.0"
+once_cell = "1.10.0"
regex = "1.5.5"
ring = "0.16.20"
serde = { version = "1.0.129", features = ["derive"] }
diff --git a/runtime/ops/http.rs b/runtime/ops/http.rs
index 702302c07..67d939976 100644
--- a/runtime/ops/http.rs
+++ b/runtime/ops/http.rs
@@ -14,12 +14,14 @@ use deno_http::http_create_conn_resource;
use deno_http::HttpRequestReader;
use deno_http::HttpStreamResource;
use deno_net::io::TcpStreamResource;
-use deno_net::io::UnixStreamResource;
use deno_net::ops_tls::TlsStream;
use deno_net::ops_tls::TlsStreamResource;
use hyper::upgrade::Parts;
use serde::Serialize;
use tokio::net::TcpStream;
+
+#[cfg(unix)]
+use deno_net::io::UnixStreamResource;
#[cfg(unix)]
use tokio::net::UnixStream;