diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-12-26 21:53:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-26 21:53:28 +0100 |
commit | e33c5eb704c22fad69876e87d9b852a4e5072a7a (patch) | |
tree | 8cebefd94d93b656798b21095a73dee0dacfcc58 /runtime | |
parent | 8fbac6739545d1d874eb1af0b2b9dddff576786c (diff) |
refactor: fastwebsockets renames (#21707)
We now use only a single version of "fastwebsockets" crate, so we no
longer need to have an alias.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Cargo.toml | 2 | ||||
-rw-r--r-- | runtime/inspector_server.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index d428fa2fb..fceb25d9a 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -97,7 +97,7 @@ deno_webstorage.workspace = true console_static_text.workspace = true dlopen2.workspace = true encoding_rs.workspace = true -fastwebsockets_06 = { package = "fastwebsockets", version = "0.6", features = ["upgrade"] } +fastwebsockets.workspace = true filetime = "0.2.16" fs3.workspace = true http.workspace = true diff --git a/runtime/inspector_server.rs b/runtime/inspector_server.rs index a1864266a..ad9cc9d7f 100644 --- a/runtime/inspector_server.rs +++ b/runtime/inspector_server.rs @@ -19,9 +19,9 @@ use deno_core::url::Url; use deno_core::InspectorMsg; use deno_core::InspectorSessionProxy; use deno_core::JsRuntime; -use fastwebsockets_06::Frame; -use fastwebsockets_06::OpCode; -use fastwebsockets_06::WebSocket; +use fastwebsockets::Frame; +use fastwebsockets::OpCode; +use fastwebsockets::WebSocket; use hyper::body::Bytes; use hyper_util::rt::TokioIo; use std::cell::RefCell; @@ -139,7 +139,7 @@ fn handle_ws_request( let (parts, _) = req.into_parts(); let mut req = http_1::Request::from_parts(parts, body); - let (resp, fut) = match fastwebsockets_06::upgrade::upgrade(&mut req) { + let (resp, fut) = match fastwebsockets::upgrade::upgrade(&mut req) { Ok((resp, fut)) => { let (parts, _body) = resp.into_parts(); let resp = http_1::Response::from_parts( |