mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #28662 - jdm:tungestenite-upgrade, r=jdm
Tungestenite upgrade This updates our async-tungstenite/tungstenite dependencies to slightly newer versions that still rely on tokio 0.2 and should make #28661 easier.
This commit is contained in:
commit
5df705a41f
7 changed files with 12 additions and 38 deletions
30
Cargo.lock
generated
30
Cargo.lock
generated
|
@ -182,15 +182,15 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-tungstenite"
|
name = "async-tungstenite"
|
||||||
version = "0.7.1"
|
version = "0.9.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2760f968801f873112e651c5a9c3b60c11ae6d66e7ca3f2d51aafbfcef9495fa"
|
checksum = "9ce503a5cb1e7450af7d211b86b84807791b251f335b2f43f1e26b85a416f315"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-io",
|
"futures-io",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"log",
|
"log",
|
||||||
"openssl",
|
"openssl",
|
||||||
"pin-project 0.4.22",
|
"pin-project",
|
||||||
"tokio 0.2.21",
|
"tokio 0.2.21",
|
||||||
"tokio-openssl 0.4.0",
|
"tokio-openssl 0.4.0",
|
||||||
"tungstenite",
|
"tungstenite",
|
||||||
|
@ -1928,7 +1928,7 @@ dependencies = [
|
||||||
"futures-sink",
|
"futures-sink",
|
||||||
"futures-task",
|
"futures-task",
|
||||||
"memchr",
|
"memchr",
|
||||||
"pin-project 1.0.2",
|
"pin-project",
|
||||||
"pin-utils",
|
"pin-utils",
|
||||||
"proc-macro-hack",
|
"proc-macro-hack",
|
||||||
"proc-macro-nested",
|
"proc-macro-nested",
|
||||||
|
@ -4609,33 +4609,13 @@ dependencies = [
|
||||||
"siphasher",
|
"siphasher",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pin-project"
|
|
||||||
version = "0.4.22"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "12e3a6cdbfe94a5e4572812a0201f8c0ed98c1c452c7b8563ce2276988ef9c17"
|
|
||||||
dependencies = [
|
|
||||||
"pin-project-internal 0.4.22",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pin-project"
|
name = "pin-project"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9ccc2237c2c489783abd8c4c80e5450fc0e98644555b1364da68cc29aa151ca7"
|
checksum = "9ccc2237c2c489783abd8c4c80e5450fc0e98644555b1364da68cc29aa151ca7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pin-project-internal 1.0.2",
|
"pin-project-internal",
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pin-project-internal"
|
|
||||||
version = "0.4.22"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "6a0ffd45cf79d88737d7cc85bfd5d2894bee1139b356e616fe85dc389c61aaf7"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -6,13 +6,13 @@ use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct FontContextHandle {
|
pub struct FontContextHandle {
|
||||||
ctx: (),
|
_ctx: (),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FontContextHandle {
|
impl FontContextHandle {
|
||||||
// this is a placeholder until NSFontManager or whatever is bound in here.
|
// this is a placeholder until NSFontManager or whatever is bound in here.
|
||||||
pub fn new() -> FontContextHandle {
|
pub fn new() -> FontContextHandle {
|
||||||
FontContextHandle { ctx: () }
|
FontContextHandle { _ctx: () }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-recursion = "0.3.2"
|
async-recursion = "0.3.2"
|
||||||
async-tungstenite = { version = "0.7.1", features = ["tokio-openssl"] }
|
async-tungstenite = { version = "0.9", features = ["tokio-openssl"] }
|
||||||
base64 = "0.10.1"
|
base64 = "0.10.1"
|
||||||
brotli = "3"
|
brotli = "3"
|
||||||
bytes = "0.4"
|
bytes = "0.4"
|
||||||
|
@ -60,7 +60,7 @@ servo_config = { path = "../config" }
|
||||||
servo_url = { path = "../url" }
|
servo_url = { path = "../url" }
|
||||||
time = "0.1.41"
|
time = "0.1.41"
|
||||||
tokio = "0.1"
|
tokio = "0.1"
|
||||||
tokio2 = { version = "0.2", package = "tokio", features = ["sync", "macros", "rt-threaded"] }
|
tokio2 = { version = "0.2", package = "tokio", features = ["sync", "macros", "rt-threaded", "tcp"] }
|
||||||
tokio-compat = "0.1"
|
tokio-compat = "0.1"
|
||||||
tungstenite = "0.11"
|
tungstenite = "0.11"
|
||||||
url = "2.0"
|
url = "2.0"
|
||||||
|
|
|
@ -12,8 +12,6 @@ use crate::subresource_integrity::is_response_integrity_valid;
|
||||||
use content_security_policy as csp;
|
use content_security_policy as csp;
|
||||||
use crossbeam_channel::Sender;
|
use crossbeam_channel::Sender;
|
||||||
use devtools_traits::DevtoolsControlMsg;
|
use devtools_traits::DevtoolsControlMsg;
|
||||||
use futures_util::compat::*;
|
|
||||||
use futures_util::StreamExt;
|
|
||||||
use headers::{AccessControlExposeHeaders, ContentType, HeaderMapExt, Range};
|
use headers::{AccessControlExposeHeaders, ContentType, HeaderMapExt, Range};
|
||||||
use http::header::{self, HeaderMap, HeaderName};
|
use http::header::{self, HeaderMap, HeaderName};
|
||||||
use hyper::Method;
|
use hyper::Method;
|
||||||
|
|
|
@ -57,7 +57,7 @@ struct FileStoreEntry {
|
||||||
struct FileMetaData {
|
struct FileMetaData {
|
||||||
path: PathBuf,
|
path: PathBuf,
|
||||||
/// Modified time in UNIX Epoch format
|
/// Modified time in UNIX Epoch format
|
||||||
modified: u64,
|
_modified: u64,
|
||||||
size: u64,
|
size: u64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -660,7 +660,7 @@ impl FileManagerStore {
|
||||||
|
|
||||||
let file_impl = FileImpl::MetaDataOnly(FileMetaData {
|
let file_impl = FileImpl::MetaDataOnly(FileMetaData {
|
||||||
path: file_path.to_path_buf(),
|
path: file_path.to_path_buf(),
|
||||||
modified: modified_epoch,
|
_modified: modified_epoch,
|
||||||
size: file_size,
|
size: file_size,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -523,7 +523,7 @@ async fn obtain_response(
|
||||||
.replace("}", "%7D");
|
.replace("}", "%7D");
|
||||||
|
|
||||||
let request = if let Some(chunk_requester) = body {
|
let request = if let Some(chunk_requester) = body {
|
||||||
let (mut sink, stream) = if source_is_null {
|
let (sink, stream) = if source_is_null {
|
||||||
// Step 4.2 of https://fetch.spec.whatwg.org/#concept-http-network-fetch
|
// Step 4.2 of https://fetch.spec.whatwg.org/#concept-http-network-fetch
|
||||||
// TODO: this should not be set for HTTP/2(currently not supported?).
|
// TODO: this should not be set for HTTP/2(currently not supported?).
|
||||||
headers.insert(TRANSFER_ENCODING, HeaderValue::from_static("chunked"));
|
headers.insert(TRANSFER_ENCODING, HeaderValue::from_static("chunked"));
|
||||||
|
|
|
@ -87,10 +87,6 @@ packages = [
|
||||||
"opaque-debug",
|
"opaque-debug",
|
||||||
"sha-1",
|
"sha-1",
|
||||||
"block-buffer",
|
"block-buffer",
|
||||||
|
|
||||||
# Duplicated by futures
|
|
||||||
"pin-project",
|
|
||||||
"pin-project-internal",
|
|
||||||
]
|
]
|
||||||
# Files that are ignored for all tidy and lint checks.
|
# Files that are ignored for all tidy and lint checks.
|
||||||
files = [
|
files = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue