Auto merge of #27164 - jdm:tungstenite, r=nox

Replace ws-rs with async-tungstenite.

This change moves us from ws-rs (which doesn't see a lot of maintainer activity) and its custom async implementation to tungstenite and the tokio ecosystem. This is particularly important because of #27043, which breaks SSL websockets on Windows.

Depends on https://github.com/sdroege/async-tungstenite/pull/40/.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #27043
- [x] There are tests for these changes
This commit is contained in:
bors-servo 2020-07-08 16:48:51 -04:00 committed by GitHub
commit ed827223ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 765 additions and 324 deletions

View file

@ -21,6 +21,7 @@ rand = [
"servo_rand",
"tempfile",
"uuid",
"tungstenite",
"ws",
]
@ -37,6 +38,14 @@ packages = [
"parking_lot_core",
"wayland-sys",
# https://github.com/servo/servo/issues/26933
"futures",
"tokio-openssl",
"tokio",
"http",
"scoped-tls",
"bytes",
# https://github.com/servo/servo/pull/23288#issuecomment-494687746
"gl_generator",