diff --git a/Cargo.lock b/Cargo.lock index 723a09ee9a39f..b9fae6a92694a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2944,9 +2944,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.5.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503" +checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" @@ -2962,9 +2962,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.16" +version = "0.14.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7ec3e62bdc98a2f0393a5048e4c30ef659440ea6e0e572965103e72bd836f55" +checksum = "abfba89e19b959ca163c7752ba59d737c1ceea53a5d31a149c805446fc958064" dependencies = [ "bytes", "futures-channel", @@ -2975,7 +2975,7 @@ dependencies = [ "http-body", "httparse", "httpdate", - "itoa 0.4.8", + "itoa 1.0.1", "pin-project-lite 0.2.6", "socket2", "tokio", diff --git a/client/network/src/lib.rs b/client/network/src/lib.rs index d17f47328b804..4b6952dbabc27 100644 --- a/client/network/src/lib.rs +++ b/client/network/src/lib.rs @@ -256,7 +256,7 @@ pub mod config; pub mod network_state; #[doc(inline)] -pub use libp2p::{multiaddr, Multiaddr, PeerId}; +pub use libp2p::{multiaddr, Multiaddr, PeerId, pnet::PreSharedKey}; pub use protocol::PeerInfo; pub use sc_network_common::{ protocol::{ diff --git a/client/offchain/Cargo.toml b/client/offchain/Cargo.toml index 5ebb21406efbf..303fda7c22191 100644 --- a/client/offchain/Cargo.toml +++ b/client/offchain/Cargo.toml @@ -19,7 +19,7 @@ codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive fnv = "1.0.6" futures = "0.3.21" futures-timer = "3.0.2" -hyper = { version = "0.14.16", features = ["stream", "http2"] } +hyper = { version = "0.14.22", features = ["stream", "http2"] } hyper-rustls = { version = "0.23.0", features = ["http2"] } libp2p = { version = "0.46.1", default-features = false } num_cpus = "1.13" diff --git a/utils/prometheus/Cargo.toml b/utils/prometheus/Cargo.toml index 3c2f8321befbe..1aca9104139d1 100644 --- a/utils/prometheus/Cargo.toml +++ b/utils/prometheus/Cargo.toml @@ -14,12 +14,12 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] futures-util = { version = "0.3.19", default-features = false, features = ["io"] } -hyper = { version = "0.14.16", default-features = false, features = ["http1", "server", "tcp"] } +hyper = { version = "0.14.22", default-features = false, features = ["http1", "server", "tcp"] } log = "0.4.17" prometheus = { version = "0.13.0", default-features = false } thiserror = "1.0" tokio = { version = "1.17.0", features = ["parking_lot"] } [dev-dependencies] -hyper = { version = "0.14.16", features = ["client"] } +hyper = { version = "0.14.22", features = ["client"] } tokio = { version = "1.17.0", features = ["rt-multi-thread"] }