зеркало из https://github.com/mozilla/sccache.git
Update hyperx
MSRV for 1.4 is 1.46 Breaking change in v0.14 to `Header::parse_header`. Since the `HeaderValue` directly implements RawLike trait, we can just use it as is, without converting. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
Родитель
b80292ec06
Коммит
46c721f8ea
|
@ -98,15 +98,6 @@ version = "1.0.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
|
||||
|
||||
[[package]]
|
||||
name = "base64"
|
||||
version = "0.10.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "base64"
|
||||
version = "0.12.3"
|
||||
|
@ -212,16 +203,6 @@ version = "1.4.3"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
||||
|
||||
[[package]]
|
||||
name = "bytes"
|
||||
version = "0.4.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"iovec",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bytes"
|
||||
version = "0.5.6"
|
||||
|
@ -575,7 +556,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
|
||||
dependencies = [
|
||||
"matches",
|
||||
"percent-encoding 2.1.0",
|
||||
"percent-encoding",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -740,7 +721,7 @@ dependencies = [
|
|||
"futures-core",
|
||||
"futures-sink",
|
||||
"futures-util",
|
||||
"http 0.2.5",
|
||||
"http",
|
||||
"indexmap",
|
||||
"slab",
|
||||
"tokio 1.13.0",
|
||||
|
@ -773,17 +754,6 @@ dependencies = [
|
|||
"digest 0.9.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "http"
|
||||
version = "0.1.21"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0"
|
||||
dependencies = [
|
||||
"bytes 0.4.12",
|
||||
"fnv",
|
||||
"itoa",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "http"
|
||||
version = "0.2.5"
|
||||
|
@ -802,7 +772,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"
|
||||
dependencies = [
|
||||
"bytes 1.1.0",
|
||||
"http 0.2.5",
|
||||
"http",
|
||||
"pin-project-lite 0.2.7",
|
||||
]
|
||||
|
||||
|
@ -835,7 +805,7 @@ dependencies = [
|
|||
"futures-core",
|
||||
"futures-util",
|
||||
"h2",
|
||||
"http 0.2.5",
|
||||
"http",
|
||||
"http-body",
|
||||
"httparse",
|
||||
"httpdate",
|
||||
|
@ -863,19 +833,17 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "hyperx"
|
||||
version = "0.13.2"
|
||||
version = "1.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e4a94cbc2c6f63028e5736ca4e811ae36d3990059c384cbe68298c66728a9776"
|
||||
checksum = "5617e92fc2f2501c3e2bc6ce547cad841adba2bae5b921c7e52510beca6d084c"
|
||||
dependencies = [
|
||||
"base64 0.10.1",
|
||||
"bytes 0.4.12",
|
||||
"http 0.1.21",
|
||||
"httparse",
|
||||
"base64 0.13.0",
|
||||
"bytes 1.1.0",
|
||||
"http",
|
||||
"httpdate",
|
||||
"language-tags",
|
||||
"log",
|
||||
"mime",
|
||||
"percent-encoding 1.0.1",
|
||||
"time 0.1.43",
|
||||
"percent-encoding",
|
||||
"unicase",
|
||||
]
|
||||
|
||||
|
@ -900,15 +868,6 @@ dependencies = [
|
|||
"hashbrown",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "iovec"
|
||||
version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ipnet"
|
||||
version = "2.3.1"
|
||||
|
@ -974,9 +933,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "language-tags"
|
||||
version = "0.2.2"
|
||||
version = "0.3.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
|
||||
checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388"
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
|
@ -1319,12 +1278,6 @@ dependencies = [
|
|||
"regex",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "percent-encoding"
|
||||
version = "1.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
|
||||
|
||||
[[package]]
|
||||
name = "percent-encoding"
|
||||
version = "2.1.0"
|
||||
|
@ -1587,7 +1540,7 @@ dependencies = [
|
|||
"futures-util",
|
||||
"itoa",
|
||||
"native-tls",
|
||||
"percent-encoding 2.1.0",
|
||||
"percent-encoding",
|
||||
"pin-project-lite 0.2.7",
|
||||
"tokio 1.13.0",
|
||||
"tokio-native-tls",
|
||||
|
@ -1657,7 +1610,7 @@ dependencies = [
|
|||
"encoding_rs",
|
||||
"futures-core",
|
||||
"futures-util",
|
||||
"http 0.2.5",
|
||||
"http",
|
||||
"http-body",
|
||||
"hyper",
|
||||
"hyper-tls",
|
||||
|
@ -1667,7 +1620,7 @@ dependencies = [
|
|||
"log",
|
||||
"mime",
|
||||
"native-tls",
|
||||
"percent-encoding 2.1.0",
|
||||
"percent-encoding",
|
||||
"pin-project-lite 0.2.7",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
@ -1716,7 +1669,7 @@ dependencies = [
|
|||
"filetime",
|
||||
"multipart",
|
||||
"num_cpus",
|
||||
"percent-encoding 2.1.0",
|
||||
"percent-encoding",
|
||||
"rand 0.8.4",
|
||||
"serde",
|
||||
"serde_derive",
|
||||
|
@ -1776,7 +1729,7 @@ dependencies = [
|
|||
"futures",
|
||||
"futures-locks",
|
||||
"hmac",
|
||||
"http 0.2.5",
|
||||
"http",
|
||||
"hyper",
|
||||
"hyperx",
|
||||
"itertools",
|
||||
|
@ -1795,7 +1748,7 @@ dependencies = [
|
|||
"number_prefix",
|
||||
"openssl",
|
||||
"parity-tokio-ipc",
|
||||
"percent-encoding 2.1.0",
|
||||
"percent-encoding",
|
||||
"predicates",
|
||||
"rand 0.8.4",
|
||||
"redis",
|
||||
|
@ -2470,7 +2423,7 @@ dependencies = [
|
|||
"form_urlencoded",
|
||||
"idna",
|
||||
"matches",
|
||||
"percent-encoding 2.1.0",
|
||||
"percent-encoding",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -43,7 +43,7 @@ futures-locks = "0.6"
|
|||
hmac = { version = "0.10", optional = true }
|
||||
http = "0.2"
|
||||
hyper = { version = "0.14", optional = true, features = ["server"] }
|
||||
hyperx = { version = "0.13", optional = true }
|
||||
hyperx = { version = "1.0", optional = true }
|
||||
jobserver = "0.1"
|
||||
jsonwebtoken = { version = "7", optional = true }
|
||||
lazy_static = "1.0.0"
|
||||
|
|
|
@ -389,7 +389,7 @@ mod http_extension {
|
|||
H: hyperx::header::Header,
|
||||
{
|
||||
http::HeaderMap::get(self, H::header_name())
|
||||
.and_then(|header| H::parse_header(&header.as_bytes().into()).ok())
|
||||
.and_then(|header| H::parse_header(&header).ok())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче