summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-24 05:56:55 +0200
committerGitHub <noreply@github.com>2023-04-23 23:56:55 -0400
commit28e2c7204fe02304a8fc3339d7758eec0f64f723 (patch)
tree1c686617524f14d4d05b2ee76992da9e39d98da1
parentea0694bbfd6368d30cb8eaa3dd87f739eb60f8d2 (diff)
chore: remove tokio-tungstenite dependency (#18814)
-rw-r--r--Cargo.lock67
-rw-r--r--Cargo.toml1
-rw-r--r--ext/websocket/Cargo.toml1
-rw-r--r--ext/websocket/lib.rs1
-rw-r--r--test_util/Cargo.toml1
5 files changed, 3 insertions, 68 deletions
diff --git a/Cargo.lock b/Cargo.lock
index ac188de53..666741cf5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -330,15 +330,6 @@ checksum = "c70beb79cbb5ce9c4f8e20849978f34225931f665bb49efa6982875a4d5facb3"
[[package]]
name = "block-buffer"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
-dependencies = [
- "generic-array 0.14.6",
-]
-
-[[package]]
-name = "block-buffer"
version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
@@ -1168,7 +1159,7 @@ dependencies = [
"rsa",
"scrypt",
"serde",
- "sha-1 0.10.0",
+ "sha-1",
"sha2",
"sha3",
"signature 1.6.4",
@@ -1361,7 +1352,6 @@ dependencies = [
"serde",
"tokio",
"tokio-rustls",
- "tokio-tungstenite",
]
[[package]]
@@ -1452,7 +1442,7 @@ version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f"
dependencies = [
- "block-buffer 0.10.4",
+ "block-buffer",
"const-oid",
"crypto-common",
"subtle",
@@ -4109,19 +4099,6 @@ dependencies = [
[[package]]
name = "sha-1"
-version = "0.9.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6"
-dependencies = [
- "block-buffer 0.9.0",
- "cfg-if",
- "cpufeatures",
- "digest 0.9.0",
- "opaque-debug",
-]
-
-[[package]]
-name = "sha-1"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f"
@@ -4669,7 +4646,7 @@ dependencies = [
"indexmap",
"once_cell",
"serde",
- "sha-1 0.10.0",
+ "sha-1",
"string_enum",
"swc_atoms",
"swc_common",
@@ -4930,7 +4907,6 @@ dependencies = [
"tempfile",
"tokio",
"tokio-rustls",
- "tokio-tungstenite",
"url",
"winapi",
]
@@ -5095,22 +5071,6 @@ dependencies = [
]
[[package]]
-name = "tokio-tungstenite"
-version = "0.16.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e80b39df6afcc12cdf752398ade96a6b9e99c903dfdc36e53ad10b9c366bca72"
-dependencies = [
- "futures-util",
- "log",
- "rustls",
- "tokio",
- "tokio-rustls",
- "tungstenite",
- "webpki",
- "webpki-roots",
-]
-
-[[package]]
name = "tokio-util"
version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -5363,27 +5323,6 @@ dependencies = [
]
[[package]]
-name = "tungstenite"
-version = "0.16.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ad3713a14ae247f22a728a0456a545df14acf3867f905adff84be99e23b3ad1"
-dependencies = [
- "base64 0.13.1",
- "byteorder",
- "bytes",
- "http",
- "httparse",
- "log",
- "rand",
- "rustls",
- "sha-1 0.9.8",
- "thiserror",
- "url",
- "utf-8",
- "webpki",
-]
-
-[[package]]
name = "twox-hash"
version = "1.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 9edd7f835..0602f2a5f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -134,7 +134,6 @@ tempfile = "3.4.0"
thiserror = "=1.0.38"
tokio = { version = "=1.25.0", features = ["full"] }
tokio-rustls = "0.23.3"
-tokio-tungstenite = "0.16.1"
tokio-util = "0.7.4"
tower-lsp = { version = "=0.17.0", features = ["proposed"] }
url = { version = "2.3.1", features = ["serde", "expose_internals"] }
diff --git a/ext/websocket/Cargo.toml b/ext/websocket/Cargo.toml
index 006c73a5f..82be1d863 100644
--- a/ext/websocket/Cargo.toml
+++ b/ext/websocket/Cargo.toml
@@ -24,4 +24,3 @@ hyper = { workspace = true, features = ["backports"] }
serde.workspace = true
tokio.workspace = true
tokio-rustls.workspace = true
-tokio-tungstenite = { workspace = true, features = ["rustls-tls-webpki-roots"] }
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs
index 943b5d47c..07cddc85b 100644
--- a/ext/websocket/lib.rs
+++ b/ext/websocket/lib.rs
@@ -52,7 +52,6 @@ use fastwebsockets::OpCode;
use fastwebsockets::Role;
use fastwebsockets::WebSocket;
-pub use tokio_tungstenite; // Re-export tokio_tungstenite
mod stream;
#[derive(Clone)]
diff --git a/test_util/Cargo.toml b/test_util/Cargo.toml
index 593491311..115eea326 100644
--- a/test_util/Cargo.toml
+++ b/test_util/Cargo.toml
@@ -41,7 +41,6 @@ tar.workspace = true
tempfile.workspace = true
tokio.workspace = true
tokio-rustls.workspace = true
-tokio-tungstenite = { workspace = true, features = ["rustls-tls-webpki-roots"] }
url.workspace = true
[target.'cfg(unix)'.dependencies]