summaryrefslogtreecommitdiff
path: root/op_crates
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates')
-rw-r--r--op_crates/fetch/Cargo.toml4
-rw-r--r--op_crates/url/Cargo.toml4
-rw-r--r--op_crates/web/Cargo.toml2
-rw-r--r--op_crates/webgpu/Cargo.toml2
-rw-r--r--op_crates/websocket/Cargo.toml6
-rw-r--r--op_crates/websocket/lib.rs13
6 files changed, 14 insertions, 17 deletions
diff --git a/op_crates/fetch/Cargo.toml b/op_crates/fetch/Cargo.toml
index 2233fdfbd..9e86669e8 100644
--- a/op_crates/fetch/Cargo.toml
+++ b/op_crates/fetch/Cargo.toml
@@ -16,8 +16,8 @@ path = "lib.rs"
[dependencies]
bytes = "1.0.1"
deno_core = { version = "0.83.0", path = "../../core" }
-reqwest = { version = "0.11.0", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] }
-serde = { version = "1.0.123", features = ["derive"] }
+reqwest = { version = "0.11.2", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] }
+serde = { version = "1.0.125", features = ["derive"] }
tokio = { version = "1.4.0", features = ["full"] }
tokio-stream = "0.1.5"
tokio-util = "0.6.5"
diff --git a/op_crates/url/Cargo.toml b/op_crates/url/Cargo.toml
index ab6057cd4..d3760887e 100644
--- a/op_crates/url/Cargo.toml
+++ b/op_crates/url/Cargo.toml
@@ -15,5 +15,5 @@ path = "lib.rs"
[dependencies]
deno_core = { version = "0.83.0", path = "../../core" }
-idna = "0.2.1"
-serde = { version = "1.0.123", features = ["derive"] }
+idna = "0.2.2"
+serde = { version = "1.0.125", features = ["derive"] }
diff --git a/op_crates/web/Cargo.toml b/op_crates/web/Cargo.toml
index 020763d51..8d0a6b852 100644
--- a/op_crates/web/Cargo.toml
+++ b/op_crates/web/Cargo.toml
@@ -17,4 +17,4 @@ path = "lib.rs"
deno_core = { version = "0.83.0", path = "../../core" }
[dev-dependencies]
-futures = "0.3.12"
+futures = "0.3.13"
diff --git a/op_crates/webgpu/Cargo.toml b/op_crates/webgpu/Cargo.toml
index 83d3eae78..4a29c15a0 100644
--- a/op_crates/webgpu/Cargo.toml
+++ b/op_crates/webgpu/Cargo.toml
@@ -16,6 +16,6 @@ path = "lib.rs"
[dependencies]
deno_core = { version = "0.83.0", path = "../../core" }
tokio = { version = "1.4.0", features = ["full"] }
-serde = { version = "1.0.123", features = ["derive"] }
+serde = { version = "1.0.125", features = ["derive"] }
wgpu-core = { version = "0.7.0", features = ["trace"] }
wgpu-types = "0.7.0"
diff --git a/op_crates/websocket/Cargo.toml b/op_crates/websocket/Cargo.toml
index 8d871614d..d3d0aa17d 100644
--- a/op_crates/websocket/Cargo.toml
+++ b/op_crates/websocket/Cargo.toml
@@ -16,9 +16,9 @@ path = "lib.rs"
[dependencies]
deno_core = { version = "0.83.0", path = "../../core" }
http = "0.2.3"
-serde = { version = "1.0.123", features = ["derive"] }
+serde = { version = "1.0.125", features = ["derive"] }
tokio = { version = "1.4.0", features = ["full"] }
tokio-rustls = "0.22.0"
-tokio-tungstenite = "0.13.0"
+tokio-tungstenite = { version = "0.14.0", features = ["rustls-tls"] }
webpki = "0.21.4"
-webpki-roots = "0.21.0"
+webpki-roots = "0.21.1"
diff --git a/op_crates/websocket/lib.rs b/op_crates/websocket/lib.rs
index 1e6eaafb7..59fa5acdb 100644
--- a/op_crates/websocket/lib.rs
+++ b/op_crates/websocket/lib.rs
@@ -32,12 +32,12 @@ use std::rc::Rc;
use std::sync::Arc;
use tokio::net::TcpStream;
use tokio_rustls::{rustls::ClientConfig, TlsConnector};
-use tokio_tungstenite::stream::Stream as StreamSwitcher;
use tokio_tungstenite::tungstenite::Error as TungsteniteError;
use tokio_tungstenite::tungstenite::{
handshake::client::Response, protocol::frame::coding::CloseCode,
protocol::CloseFrame, Message,
};
+use tokio_tungstenite::MaybeTlsStream;
use tokio_tungstenite::{client_async, WebSocketStream};
use webpki::DNSNameRef;
@@ -61,10 +61,7 @@ impl WebSocketPermissions for NoWebSocketPermissions {
}
}
-type MaybeTlsStream =
- StreamSwitcher<TcpStream, tokio_rustls::client::TlsStream<TcpStream>>;
-
-type WsStream = WebSocketStream<MaybeTlsStream>;
+type WsStream = WebSocketStream<MaybeTlsStream<TcpStream>>;
struct WsStreamResource {
tx: AsyncRefCell<SplitSink<WsStream, Message>>,
rx: AsyncRefCell<SplitStream<WsStream>>,
@@ -149,8 +146,8 @@ where
Err(_) => return Ok(json!({ "success": false })),
};
- let socket: MaybeTlsStream = match uri.scheme_str() {
- Some("ws") => StreamSwitcher::Plain(tcp_socket),
+ let socket: MaybeTlsStream<TcpStream> = match uri.scheme_str() {
+ Some("ws") => MaybeTlsStream::Plain(tcp_socket),
Some("wss") => {
let mut config = ClientConfig::new();
config
@@ -166,7 +163,7 @@ where
let dnsname =
DNSNameRef::try_from_ascii_str(&domain).expect("Invalid DNS lookup");
let tls_socket = tls_connector.connect(dnsname, tcp_socket).await?;
- StreamSwitcher::Tls(tls_socket)
+ MaybeTlsStream::Rustls(tls_socket)
}
_ => unreachable!(),
};