From ca39f65da90406fc2c2cfdb3c9b88b4e91ba10bc Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 4 Nov 2022 15:24:05 +0800 Subject: [PATCH] update rust libp2p --- Cargo.lock | 47 +++++++++++++++++++++++------------------------ Cargo.toml | 1 + 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 20c09987fbd93..2f26e8ef76daf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -482,8 +482,7 @@ dependencies = [ [[package]] name = "asynchronous-codec" version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0de5164e5edbf51c45fb8c2d9664ae1c095cce1b265ecf7569093c0d66ef690" +source = "git+https://github.com/melekes/asynchronous-codec.git?branch=anton/set-watermark#56de24b29ac0f4b368bf85bd66444d5f80ad8c98" dependencies = [ "bytes", "futures-sink", @@ -3900,7 +3899,7 @@ checksum = "292a948cd991e376cf75541fe5b97a1081d713c618b4f1b9500f8844e49eb565" [[package]] name = "libp2p" version = "0.50.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "bytes", "futures", @@ -3934,7 +3933,7 @@ dependencies = [ [[package]] name = "libp2p-core" version = "0.37.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "asn1_der", "bs58", @@ -3966,7 +3965,7 @@ dependencies = [ [[package]] name = "libp2p-dns" version = "0.37.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "async-std-resolver", "futures", @@ -3980,7 +3979,7 @@ dependencies = [ [[package]] name = "libp2p-identify" version = "0.40.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "asynchronous-codec", "futures", @@ -4000,7 +3999,7 @@ dependencies = [ [[package]] name = "libp2p-kad" version = "0.41.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "arrayvec 0.7.2", "asynchronous-codec", @@ -4027,7 +4026,7 @@ dependencies = [ [[package]] name = "libp2p-mdns" version = "0.41.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "async-io", "data-encoding", @@ -4047,7 +4046,7 @@ dependencies = [ [[package]] name = "libp2p-metrics" version = "0.10.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "libp2p-core", "libp2p-identify", @@ -4060,7 +4059,7 @@ dependencies = [ [[package]] name = "libp2p-mplex" version = "0.37.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "asynchronous-codec", "bytes", @@ -4077,7 +4076,7 @@ dependencies = [ [[package]] name = "libp2p-noise" version = "0.40.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "bytes", "curve25519-dalek 3.2.0", @@ -4098,7 +4097,7 @@ dependencies = [ [[package]] name = "libp2p-ping" version = "0.40.1" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "futures", "futures-timer", @@ -4113,7 +4112,7 @@ dependencies = [ [[package]] name = "libp2p-request-response" version = "0.22.1" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "async-trait", "bytes", @@ -4130,7 +4129,7 @@ dependencies = [ [[package]] name = "libp2p-swarm" version = "0.40.1" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "either", "fnv", @@ -4149,7 +4148,7 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" version = "0.30.1" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "heck", "quote", @@ -4159,7 +4158,7 @@ dependencies = [ [[package]] name = "libp2p-tcp" version = "0.38.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "async-io", "futures", @@ -4175,7 +4174,7 @@ dependencies = [ [[package]] name = "libp2p-wasm-ext" version = "0.37.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "futures", "js-sys", @@ -4188,7 +4187,7 @@ dependencies = [ [[package]] name = "libp2p-webrtc" version = "0.1.0-alpha" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "async-trait", "asynchronous-codec", @@ -4218,7 +4217,7 @@ dependencies = [ [[package]] name = "libp2p-websocket" version = "0.39.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "either", "futures", @@ -4236,7 +4235,7 @@ dependencies = [ [[package]] name = "libp2p-yamux" version = "0.41.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "futures", "libp2p-core", @@ -4706,7 +4705,7 @@ checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" [[package]] name = "multistream-select" version = "0.12.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "bytes", "futures", @@ -7411,7 +7410,7 @@ dependencies = [ [[package]] name = "prost-codec" version = "0.2.1" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "asynchronous-codec", "bytes", @@ -8039,7 +8038,7 @@ dependencies = [ [[package]] name = "rw-stream-sink" version = "0.3.0" -source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#c41e9304b64d2359acd3113121d6267ab19cd88c" +source = "git+https://github.com/melekes/rust-libp2p.git?branch=anton/webrtc-transport#35e02d236250630d156c2f91c932c8994101c02e" dependencies = [ "futures", "pin-project", @@ -11713,7 +11712,7 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 1.0.0", + "cfg-if 0.1.10", "digest 0.10.5", "rand 0.8.5", "static_assertions", diff --git a/Cargo.toml b/Cargo.toml index dbc90a293e900..f6e4cd0532445 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -314,3 +314,4 @@ codegen-units = 1 # TODO: remove [patch.crates-io] libp2p = { version = "0.50.0", git = "https://github.com/melekes/rust-libp2p.git", branch = "anton/webrtc-transport" } +asynchronous-codec = { version = "0.6", git = "https://github.com/melekes/asynchronous-codec.git", branch = "anton/set-watermark" }