Auto merge of #27552 - servo:dependabot/cargo/tungstenite-0.11.1, r=jdm

Bump tungstenite from 0.11.0 to 0.11.1

Bumps [tungstenite](https://github.com/snapview/tungstenite-rs) from 0.11.0 to 0.11.1.
<details>
<summary>Commits</summary>
<ul>
<li><a href="9d67240cab"><code>9d67240</code></a> cargo: add author</li>
<li><a href="1de6da9a3c"><code>1de6da9</code></a> Bump version</li>
<li><a href="939c4d181c"><code>939c4d1</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/snapview/tungstenite-rs/issues/132">#132</a> from sdroege/sha-1-0.9</li>
<li><a href="849f248a94"><code>849f248</code></a> Update to sha-1 0.9</li>
<li><a href="fd7de42347"><code>fd7de42</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/snapview/tungstenite-rs/issues/110">#110</a> from najamelan/doc/mib</li>
<li><a href="6791dcc0d6"><code>6791dcc</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/snapview/tungstenite-rs/issues/119">#119</a> from kids300/master</li>
<li><a href="744bd87a41"><code>744bd87</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/snapview/tungstenite-rs/issues/130">#130</a> from Krisa/patch-1</li>
<li><a href="fe4d631c97"><code>fe4d631</code></a> Allow statically linking</li>
<li><a href="fb83e8c791"><code>fb83e8c</code></a> rm to_string</li>
<li><a href="16a33df195"><code>16a33df</code></a> fix ws subportocol lowercase header</li>
<li>Additional commits viewable in <a href="https://github.com/snapview/tungstenite-rs/compare/v0.11.0...v0.11.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=tungstenite&package-manager=cargo&previous-version=0.11.0&new-version=0.11.1)](https://dependabot.com/compatibility-score/?dependency-name=tungstenite&package-manager=cargo&previous-version=0.11.0&new-version=0.11.1)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
This commit is contained in:
bors-servo 2020-08-10 10:42:58 -04:00 committed by GitHub
commit 815ff0ad94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 74 additions and 156 deletions

90
Cargo.lock generated
View file

@ -345,7 +345,16 @@ dependencies = [
"block-padding", "block-padding",
"byte-tools", "byte-tools",
"byteorder", "byteorder",
"generic-array", "generic-array 0.12.3",
]
[[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.4",
] ]
[[package]] [[package]]
@ -853,7 +862,6 @@ dependencies = [
"canvas_traits", "canvas_traits",
"compositing", "compositing",
"crossbeam-channel", "crossbeam-channel",
"debugger",
"devtools_traits", "devtools_traits",
"embedder_traits", "embedder_traits",
"euclid", "euclid",
@ -1023,6 +1031,12 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "cpuid-bool"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634"
[[package]] [[package]]
name = "crc32fast" name = "crc32fast"
version = "1.2.0" version = "1.2.0"
@ -1202,15 +1216,6 @@ dependencies = [
"libdbus-sys", "libdbus-sys",
] ]
[[package]]
name = "debugger"
version = "0.0.1"
dependencies = [
"crossbeam-channel",
"log",
"ws",
]
[[package]] [[package]]
name = "deflate" name = "deflate"
version = "0.7.20" version = "0.7.20"
@ -1323,7 +1328,16 @@ version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
dependencies = [ dependencies = [
"generic-array", "generic-array 0.12.3",
]
[[package]]
name = "digest"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
dependencies = [
"generic-array 0.14.4",
] ]
[[package]] [[package]]
@ -1823,6 +1837,16 @@ dependencies = [
"typenum", "typenum",
] ]
[[package]]
name = "generic-array"
version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817"
dependencies = [
"typenum",
"version_check",
]
[[package]] [[package]]
name = "getopts" name = "getopts"
version = "0.2.17" version = "0.2.17"
@ -2510,7 +2534,7 @@ dependencies = [
"headers-core", "headers-core",
"http 0.1.21", "http 0.1.21",
"mime", "mime",
"sha-1", "sha-1 0.8.2",
"time", "time",
] ]
@ -3189,7 +3213,6 @@ dependencies = [
"compositing", "compositing",
"constellation", "constellation",
"crossbeam-channel", "crossbeam-channel",
"debugger",
"devtools", "devtools",
"devtools_traits", "devtools_traits",
"embedder_traits", "embedder_traits",
@ -4011,6 +4034,12 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51ecbcb821e1bd256d456fe858aaa7f380b63863eab2eb86eee1bd9f33dd6682" checksum = "51ecbcb821e1bd256d456fe858aaa7f380b63863eab2eb86eee1bd9f33dd6682"
[[package]]
name = "opaque-debug"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]] [[package]]
name = "openssl" name = "openssl"
version = "0.10.30" version = "0.10.30"
@ -5458,10 +5487,23 @@ version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df" checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df"
dependencies = [ dependencies = [
"block-buffer", "block-buffer 0.7.3",
"digest", "digest 0.8.1",
"fake-simd", "fake-simd",
"opaque-debug", "opaque-debug 0.2.1",
]
[[package]]
name = "sha-1"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "170a36ea86c864a3f16dd2687712dd6646f7019f301e57537c7f4dc9f5916770"
dependencies = [
"block-buffer 0.9.0",
"cfg-if",
"cpuid-bool",
"digest 0.9.0",
"opaque-debug 0.3.0",
] ]
[[package]] [[package]]
@ -5470,10 +5512,10 @@ version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27044adfd2e1f077f649f59deb9490d3941d674002f7d062870a60ebe9bd47a0" checksum = "27044adfd2e1f077f649f59deb9490d3941d674002f7d062870a60ebe9bd47a0"
dependencies = [ dependencies = [
"block-buffer", "block-buffer 0.7.3",
"digest", "digest 0.8.1",
"fake-simd", "fake-simd",
"opaque-debug", "opaque-debug 0.2.1",
] ]
[[package]] [[package]]
@ -6391,9 +6433,9 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382"
[[package]] [[package]]
name = "tungstenite" name = "tungstenite"
version = "0.11.0" version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5c7d464221cb0b538a1cd12f6d9127ed1e6bb7f3ffca98fb3cd4c6e3af8175c" checksum = "f0308d80d86700c5878b9ef6321f020f29b1bb9d5ff3cab25e75e23f3a492a23"
dependencies = [ dependencies = [
"base64 0.12.0", "base64 0.12.0",
"byteorder", "byteorder",
@ -6404,7 +6446,7 @@ dependencies = [
"log", "log",
"native-tls", "native-tls",
"rand", "rand",
"sha-1", "sha-1 0.9.1",
"url", "url",
"utf-8", "utf-8",
] ]
@ -7082,7 +7124,7 @@ dependencies = [
"mio", "mio",
"mio-extras", "mio-extras",
"rand", "rand",
"sha-1", "sha-1 0.8.2",
"slab", "slab",
"url", "url",
] ]

View file

@ -108,10 +108,6 @@ pub struct Opts {
/// Periodically print out on which events script threads spend their processing time. /// Periodically print out on which events script threads spend their processing time.
pub profile_script_events: bool, pub profile_script_events: bool,
/// `None` to disable debugger or `Some` with a port number to start a server to listen to
/// remote Firefox debugger connections.
pub debugger_port: Option<u16>,
/// Port number to start a server to listen to remote Firefox devtools connections. /// Port number to start a server to listen to remote Firefox devtools connections.
/// 0 for random port. /// 0 for random port.
pub devtools_port: u16, pub devtools_port: u16,
@ -484,7 +480,6 @@ pub fn default_opts() -> Opts {
enable_subpixel_text_antialiasing: true, enable_subpixel_text_antialiasing: true,
enable_canvas_antialiasing: true, enable_canvas_antialiasing: true,
trace_layout: false, trace_layout: false,
debugger_port: None,
devtools_port: 0, devtools_port: 0,
devtools_server_enabled: false, devtools_server_enabled: false,
webdriver_port: None, webdriver_port: None,
@ -589,12 +584,6 @@ pub fn from_cmdline_args(mut opts: Options, args: &[String]) -> ArgumentParsingR
"soft-fail", "soft-fail",
"Display about:failure on thread failure instead of exiting", "Display about:failure on thread failure instead of exiting",
); );
opts.optflagopt(
"",
"remote-debugging-port",
"Start remote debugger server on port",
"2794",
);
opts.optflagopt("", "devtools", "Start remote devtools server on port", "0"); opts.optflagopt("", "devtools", "Start remote devtools server on port", "0");
opts.optflagopt( opts.optflagopt(
"", "",
@ -795,17 +784,6 @@ pub fn from_cmdline_args(mut opts: Options, args: &[String]) -> ArgumentParsingR
bubble_inline_sizes_separately = true; bubble_inline_sizes_separately = true;
} }
let debugger_port = opt_match
.opt_default("remote-debugging-port", "2794")
.map(|port| {
port.parse().unwrap_or_else(|err| {
args_fail(&format!(
"Error parsing option: --remote-debugging-port ({})",
err
))
})
});
let (devtools_enabled, devtools_port) = if opt_match.opt_present("devtools") { let (devtools_enabled, devtools_port) = if opt_match.opt_present("devtools") {
let port = opt_match let port = opt_match
.opt_str("devtools") .opt_str("devtools")
@ -887,7 +865,6 @@ pub fn from_cmdline_args(mut opts: Options, args: &[String]) -> ArgumentParsingR
bubble_inline_sizes_separately: bubble_inline_sizes_separately, bubble_inline_sizes_separately: bubble_inline_sizes_separately,
profile_script_events: debug_options.profile_script_events, profile_script_events: debug_options.profile_script_events,
trace_layout: debug_options.trace_layout, trace_layout: debug_options.trace_layout,
debugger_port: debugger_port,
devtools_port: devtools_port, devtools_port: devtools_port,
devtools_server_enabled: devtools_enabled, devtools_server_enabled: devtools_enabled,
webdriver_port: webdriver_port, webdriver_port: webdriver_port,

View file

@ -17,7 +17,6 @@ bluetooth_traits = { path = "../bluetooth_traits" }
canvas_traits = { path = "../canvas_traits" } canvas_traits = { path = "../canvas_traits" }
compositing = { path = "../compositing" } compositing = { path = "../compositing" }
crossbeam-channel = "0.4" crossbeam-channel = "0.4"
debugger = { path = "../debugger" }
devtools_traits = { path = "../devtools_traits" } devtools_traits = { path = "../devtools_traits" }
embedder_traits = { path = "../embedder_traits" } embedder_traits = { path = "../embedder_traits" }
euclid = "0.20" euclid = "0.20"

View file

@ -50,7 +50,7 @@
//! * The font cache, image cache, and resource manager, which load //! * The font cache, image cache, and resource manager, which load
//! and cache shared fonts, images, or other resources. //! and cache shared fonts, images, or other resources.
//! * The service worker manager. //! * The service worker manager.
//! * The devtools, debugger and webdriver servers. //! * The devtools and webdriver servers.
//! //!
//! The constellation passes messages between the threads, and updates its state //! The constellation passes messages between the threads, and updates its state
//! to track the evolving state of the browsing context tree. //! to track the evolving state of the browsing context tree.
@ -356,10 +356,6 @@ pub struct Constellation<Message, LTF, STF, SWF> {
/// cache thread. /// cache thread.
font_cache_thread: FontCacheThread, font_cache_thread: FontCacheThread,
/// A channel for the constellation to send messages to the
/// debugger thread.
debugger_chan: Option<debugger::Sender>,
/// A channel for the constellation to send messages to the /// A channel for the constellation to send messages to the
/// devtools thread. /// devtools thread.
devtools_chan: Option<Sender<DevtoolsControlMsg>>, devtools_chan: Option<Sender<DevtoolsControlMsg>>,
@ -526,9 +522,6 @@ pub struct InitialConstellationState {
/// A channel through which messages can be sent to the compositor. /// A channel through which messages can be sent to the compositor.
pub compositor_proxy: CompositorProxy, pub compositor_proxy: CompositorProxy,
/// A channel to the debugger, if applicable.
pub debugger_chan: Option<debugger::Sender>,
/// A channel to the developer tools, if applicable. /// A channel to the developer tools, if applicable.
pub devtools_chan: Option<Sender<DevtoolsControlMsg>>, pub devtools_chan: Option<Sender<DevtoolsControlMsg>>,
@ -872,7 +865,6 @@ where
compositor_proxy: state.compositor_proxy, compositor_proxy: state.compositor_proxy,
active_browser_id: None, active_browser_id: None,
browsers: HashMap::new(), browsers: HashMap::new(),
debugger_chan: state.debugger_chan,
devtools_chan: state.devtools_chan, devtools_chan: state.devtools_chan,
bluetooth_thread: state.bluetooth_thread, bluetooth_thread: state.bluetooth_thread,
public_resource_threads: state.public_resource_threads, public_resource_threads: state.public_resource_threads,
@ -2739,10 +2731,6 @@ where
warn!("Exit resource thread failed ({})", e); warn!("Exit resource thread failed ({})", e);
} }
if let Some(ref chan) = self.debugger_chan {
debugger::shutdown_server(chan);
}
if let Some(ref chan) = self.devtools_chan { if let Some(ref chan) = self.devtools_chan {
debug!("Exiting devtools."); debug!("Exiting devtools.");
let msg = DevtoolsControlMsg::FromChrome(ChromeToDevtoolsControlMsg::ServerExitMsg); let msg = DevtoolsControlMsg::FromChrome(ChromeToDevtoolsControlMsg::ServerExitMsg);

View file

@ -1,17 +0,0 @@
[package]
name = "debugger"
version = "0.0.1"
authors = ["The Servo Project Developers"]
license = "MPL-2.0"
edition = "2018"
publish = false
[lib]
name = "debugger"
path = "lib.rs"
crate_type = ["rlib"]
[dependencies]
crossbeam-channel = "0.4"
log = "0.4"
ws = "0.9"

View file

@ -1,71 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#[macro_use]
extern crate log;
use std::thread;
use ws::{self, Builder, CloseCode, Handler, Handshake};
enum Message {
ShutdownServer,
}
pub struct Sender(crossbeam_channel::Sender<Message>);
struct Connection {
sender: ws::Sender,
}
impl Handler for Connection {
fn on_open(&mut self, _: Handshake) -> ws::Result<()> {
debug!("Connection opened.");
Ok(())
}
fn on_close(&mut self, _: CloseCode, _: &str) {
debug!("Connection closed.");
}
fn on_message(&mut self, message: ws::Message) -> ws::Result<()> {
self.sender.send(message)
}
}
pub fn start_server(port: u16) -> Sender {
debug!("Starting server.");
let (sender, receiver) = crossbeam_channel::unbounded();
thread::Builder::new()
.name("debugger".to_owned())
.spawn(move || {
let socket = Builder::new()
.build(|sender: ws::Sender| Connection { sender: sender })
.unwrap();
let sender = socket.broadcaster();
thread::Builder::new()
.name("debugger-websocket".to_owned())
.spawn(move || {
socket.listen(("127.0.0.1", port)).unwrap();
})
.expect("Thread spawning failed");
while let Ok(message) = receiver.recv() {
match message {
Message::ShutdownServer => {
break;
},
}
}
sender.shutdown().unwrap();
})
.expect("Thread spawning failed");
Sender(sender)
}
pub fn shutdown_server(sender: &Sender) {
debug!("Shutting down server.");
let &Sender(ref sender) = sender;
if let Err(_) = sender.send(Message::ShutdownServer) {
warn!("Failed to shut down server.");
}
}

View file

@ -46,7 +46,6 @@ canvas_traits = { path = "../canvas_traits" }
compositing = { path = "../compositing", features = ["gl"] } compositing = { path = "../compositing", features = ["gl"] }
constellation = { path = "../constellation" } constellation = { path = "../constellation" }
crossbeam-channel = "0.4" crossbeam-channel = "0.4"
debugger = { path = "../debugger" }
devtools = { path = "../devtools" } devtools = { path = "../devtools" }
devtools_traits = { path = "../devtools_traits" } devtools_traits = { path = "../devtools_traits" }
embedder_traits = { path = "../embedder_traits" } embedder_traits = { path = "../embedder_traits" }

View file

@ -27,7 +27,6 @@ pub use canvas;
pub use canvas_traits; pub use canvas_traits;
pub use compositing; pub use compositing;
pub use constellation; pub use constellation;
pub use debugger;
pub use devtools; pub use devtools;
pub use devtools_traits; pub use devtools_traits;
pub use embedder_traits; pub use embedder_traits;
@ -354,8 +353,6 @@ where
); );
let mem_profiler_chan = profile_mem::Profiler::create(opts.mem_profiler_period); let mem_profiler_chan = profile_mem::Profiler::create(opts.mem_profiler_period);
let debugger_chan = opts.debugger_port.map(|port| debugger::start_server(port));
let devtools_chan = if opts.devtools_server_enabled { let devtools_chan = if opts.devtools_server_enabled {
Some(devtools::start_server( Some(devtools::start_server(
opts.devtools_port, opts.devtools_port,
@ -500,7 +497,6 @@ where
compositor_proxy.clone(), compositor_proxy.clone(),
time_profiler_chan.clone(), time_profiler_chan.clone(),
mem_profiler_chan.clone(), mem_profiler_chan.clone(),
debugger_chan,
devtools_chan, devtools_chan,
webrender_document, webrender_document,
webrender_api_sender, webrender_api_sender,
@ -857,7 +853,6 @@ fn create_constellation(
compositor_proxy: CompositorProxy, compositor_proxy: CompositorProxy,
time_profiler_chan: time::ProfilerChan, time_profiler_chan: time::ProfilerChan,
mem_profiler_chan: mem::ProfilerChan, mem_profiler_chan: mem::ProfilerChan,
debugger_chan: Option<debugger::Sender>,
devtools_chan: Option<Sender<devtools_traits::DevtoolsControlMsg>>, devtools_chan: Option<Sender<devtools_traits::DevtoolsControlMsg>>,
webrender_document: webrender_api::DocumentId, webrender_document: webrender_api::DocumentId,
webrender_api_sender: webrender_api::RenderApiSender, webrender_api_sender: webrender_api::RenderApiSender,
@ -899,7 +894,6 @@ fn create_constellation(
let initial_state = InitialConstellationState { let initial_state = InitialConstellationState {
compositor_proxy, compositor_proxy,
embedder_proxy, embedder_proxy,
debugger_chan,
devtools_chan, devtools_chan,
bluetooth_thread, bluetooth_thread,
font_cache_thread, font_cache_thread,

View file

@ -67,6 +67,13 @@ packages = [
"core-graphics", "core-graphics",
"core-text", "core-text",
"lyon_geom", "lyon_geom",
# Duplicated by webrender debugger via ws
"digest",
"generic-array",
"opaque-debug",
"sha-1",
"block-buffer",
] ]
# Files that are ignored for all tidy and lint checks. # Files that are ignored for all tidy and lint checks.
files = [ files = [