summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-03-22 09:19:53 -0400
committerGitHub <noreply@github.com>2022-03-22 09:19:53 -0400
commit49012cbc337589089697c2c6ce4708538441d968 (patch)
treee72075d895cf1acbf8a687fb26b96b2303a0f0a9 /runtime
parent12d28dffc6c8d08e6620751e55d8a382c66443a2 (diff)
feat: upgrade to swc_ecmascript 0.137.0 (#14067)
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;