From 46e66dd8a94d3f60717002766d174ffe612b8225 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 20 Dec 2020 14:01:42 +0000 Subject: [PATCH] Bump libp2p from 0.29.1 to 0.33.0 Bumps [libp2p](https://github.com/libp2p/rust-libp2p) from 0.29.1 to 0.33.0. - [Release notes](https://github.com/libp2p/rust-libp2p/releases) - [Changelog](https://github.com/libp2p/rust-libp2p/blob/master/CHANGELOG.md) - [Commits](https://github.com/libp2p/rust-libp2p/compare/v0.29.1...v0.33.0) Signed-off-by: dependabot[bot] --- Cargo.lock | 316 +++++++++++++++++++++++++++++++++++++--------- cnd/Cargo.toml | 2 +- comit/Cargo.toml | 4 +- nectar/Cargo.toml | 2 +- 4 files changed, 261 insertions(+), 63 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8bf6c2e901..8ff63cc92a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -192,7 +192,7 @@ dependencies = [ "instant", "pin-project 0.4.27", "rand 0.7.3", - "tokio", + "tokio 0.2.22", ] [[package]] @@ -428,6 +428,12 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "476e9cd489f9e121e02ffa6014a8ef220ecb15c05ed23fc34cca13925dc283fb" +[[package]] +name = "bs58" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" + [[package]] name = "bstr" version = "0.2.14" @@ -618,7 +624,7 @@ dependencies = [ "hex 0.4.2", "http-api-problem", "ipnet", - "libp2p", + "libp2p 0.33.0", "libp2p-tokio-socks5", "libsqlite3-sys", "log 0.4.11", @@ -642,7 +648,7 @@ dependencies = [ "tempfile", "thiserror", "time 0.2.22", - "tokio", + "tokio 0.2.22", "toml", "tracing", "tracing-core", @@ -673,7 +679,7 @@ dependencies = [ "genawaiter", "hex 0.4.2", "levenshtein", - "libp2p", + "libp2p 0.33.0", "lru", "num 0.3.1", "primitive-types", @@ -691,7 +697,7 @@ dependencies = [ "testcontainers", "thiserror", "time 0.2.22", - "tokio", + "tokio 0.2.22", "tracing", "tracing-futures", "uuid", @@ -1422,7 +1428,7 @@ dependencies = [ "http", "indexmap", "slab", - "tokio", + "tokio 0.2.22", "tokio-util", "tracing", ] @@ -1649,7 +1655,7 @@ dependencies = [ "itoa", "pin-project 0.4.27", "socket2", - "tokio", + "tokio 0.2.22", "tower-service", "tracing", "want", @@ -1664,7 +1670,7 @@ dependencies = [ "bytes 0.5.6", "hyper 0.13.8", "native-tls", - "tokio", + "tokio 0.2.22", "tokio-tls", ] @@ -1895,18 +1901,38 @@ dependencies = [ "bytes 0.5.6", "futures", "lazy_static", - "libp2p-core", - "libp2p-core-derive", + "libp2p-core 0.23.1", + "libp2p-core-derive 0.20.2", + "libp2p-swarm 0.23.0", + "multihash 0.11.4", + "parity-multiaddr 0.9.3", + "parking_lot", + "pin-project 1.0.1", + "smallvec", + "wasm-timer", +] + +[[package]] +name = "libp2p" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e17c636b5fe5ff900ccc2840b643074bfac321551d821243a781d0d46f06588" +dependencies = [ + "atomic", + "bytes 0.5.6", + "futures", + "lazy_static", + "libp2p-core 0.26.0", + "libp2p-core-derive 0.21.0", "libp2p-dns", "libp2p-gossipsub", "libp2p-mplex", "libp2p-noise", "libp2p-request-response", - "libp2p-swarm", + "libp2p-swarm 0.26.0", "libp2p-tcp", "libp2p-yamux", - "multihash", - "parity-multiaddr", + "parity-multiaddr 0.10.0", "parking_lot", "pin-project 1.0.1", "smallvec", @@ -1920,7 +1946,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3960524389409633550567e8a9e0684d25a33f4f8408887ff897dd9fdfbdb771" dependencies = [ "asn1_der", - "bs58", + "bs58 0.3.1", "ed25519-dalek", "either", "fnv", @@ -1929,9 +1955,43 @@ dependencies = [ "lazy_static", "libsecp256k1", "log 0.4.11", - "multihash", - "multistream-select", - "parity-multiaddr", + "multihash 0.11.4", + "multistream-select 0.8.4", + "parity-multiaddr 0.9.3", + "parking_lot", + "pin-project 1.0.1", + "prost", + "prost-build", + "rand 0.7.3", + "ring", + "rw-stream-sink", + "sha2 0.9.1", + "smallvec", + "thiserror", + "unsigned-varint", + "void", + "zeroize", +] + +[[package]] +name = "libp2p-core" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cb706da14c064dce54d8864ade6836b3486b51689300da74eeb7053aa4551e" +dependencies = [ + "asn1_der", + "bs58 0.4.0", + "ed25519-dalek", + "either", + "fnv", + "futures", + "futures-timer", + "lazy_static", + "libsecp256k1", + "log 0.4.11", + "multihash 0.13.2", + "multistream-select 0.9.1", + "parity-multiaddr 0.10.0", "parking_lot", "pin-project 1.0.1", "prost", @@ -1957,22 +2017,32 @@ dependencies = [ "syn 1.0.48", ] +[[package]] +name = "libp2p-core-derive" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4bc40943156e42138d22ed3c57ff0e1a147237742715937622a99b10fbe0156" +dependencies = [ + "quote 1.0.7", + "syn 1.0.48", +] + [[package]] name = "libp2p-dns" -version = "0.23.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436280f5fe21a58fcaff82c2606945579241f32bc0eaf2d39321aa4624a66e7f" +checksum = "2e09bab25af01326b4ed9486d31325911437448edda30bc57681502542d49f20" dependencies = [ "futures", - "libp2p-core", + "libp2p-core 0.26.0", "log 0.4.11", ] [[package]] name = "libp2p-gossipsub" -version = "0.23.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d500ad89ba14de4d18bebdff61a0ce3e769f1c5c5a95026c5da90187e5fff5c9" +checksum = "d489531aa9d4ba8726a08b3b74e21c2e10a518ad266ebca98d79040123ab0036" dependencies = [ "base64 0.13.0", "byteorder", @@ -1981,8 +2051,8 @@ dependencies = [ "futures", "futures_codec", "hex_fmt", - "libp2p-core", - "libp2p-swarm", + "libp2p-core 0.26.0", + "libp2p-swarm 0.26.0", "log 0.4.11", "lru_time_cache", "prost", @@ -1996,14 +2066,14 @@ dependencies = [ [[package]] name = "libp2p-mplex" -version = "0.23.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "696c8ee8b42496690b88b0de84a96387caf6e09880bcc8e794bb88afa054e995" +checksum = "ce3200fbe6608e623bd9efa459cc8bafa0e4efbb0a2dfcdd0e1387ff4181264b" dependencies = [ "bytes 0.5.6", "futures", "futures_codec", - "libp2p-core", + "libp2p-core 0.26.0", "log 0.4.11", "nohash-hasher", "parking_lot", @@ -2014,15 +2084,15 @@ dependencies = [ [[package]] name = "libp2p-noise" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93c77142e3e5b18fefa7d267305c777c9cbe9b2232ec489979390100bebcc1e6" +checksum = "0580e0d18019d254c9c349c03ff7b22e564b6f2ada70c045fc39738e144f2139" dependencies = [ "bytes 0.5.6", "curve25519-dalek", "futures", "lazy_static", - "libp2p-core", + "libp2p-core 0.26.0", "log 0.4.11", "prost", "prost-build", @@ -2036,15 +2106,15 @@ dependencies = [ [[package]] name = "libp2p-request-response" -version = "0.4.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02ba1aa5727ccc118c09ba5111480873f2fe5608cb304e258fd12c173ecf27c9" +checksum = "620e2950decbf77554b5aed3824f7d0e2c04923f28c70f9bff1a402c47ef6b1e" dependencies = [ "async-trait", "bytes 0.5.6", "futures", - "libp2p-core", - "libp2p-swarm", + "libp2p-core 0.26.0", + "libp2p-swarm 0.26.0", "log 0.4.11", "lru", "minicbor", @@ -2062,7 +2132,23 @@ checksum = "ffa6fa33b16956b8a58afbfebe1406866011a1ab8960765bd36868952d7be6a1" dependencies = [ "either", "futures", - "libp2p-core", + "libp2p-core 0.23.1", + "log 0.4.11", + "rand 0.7.3", + "smallvec", + "void", + "wasm-timer", +] + +[[package]] +name = "libp2p-swarm" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdf5894ee1ee63a38aa58d58a16e3dcf7ede6b59ea7b22302c00c1a41d7aec41" +dependencies = [ + "either", + "futures", + "libp2p-core 0.26.0", "log 0.4.11", "rand 0.7.3", "smallvec", @@ -2072,18 +2158,18 @@ dependencies = [ [[package]] name = "libp2p-tcp" -version = "0.23.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d0b6f4ef48d9493607fae069deecce0579320a1f3de6cb056770b151018a9a5" +checksum = "1d2113a7dab2b502c55fe290910cd7399a2aa04fe70a2f5a415a87a1db600c0e" dependencies = [ "futures", "futures-timer", "if-addrs", "ipnet", - "libp2p-core", + "libp2p-core 0.26.0", "log 0.4.11", "socket2", - "tokio", + "tokio 0.3.6", ] [[package]] @@ -2097,21 +2183,21 @@ dependencies = [ "futures-timer", "get_if_addrs", "ipnet", - "libp2p", + "libp2p 0.29.1", "log 0.4.11", "socket2", - "tokio", + "tokio 0.2.22", "tokio-socks", ] [[package]] name = "libp2p-yamux" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07c0c9b6ef7a168c2ae854170b0b6b77550599afe06cc3ac390eb45c5d9c7110" +checksum = "36799de9092c35782f080032eddbc8de870f94a0def87cf9f8883efccd5cacf0" dependencies = [ "futures", - "libp2p-core", + "libp2p-core 0.26.0", "parking_lot", "thiserror", "yamux", @@ -2284,18 +2370,18 @@ dependencies = [ [[package]] name = "minicbor" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2ef6aa869726518c5d8206fa5d1337bda8a0442807611be617891c018fa781" +checksum = "0164190d1771b1458c3742075b057ed55d25cd9dfb930aade99315a1eb1fe12d" dependencies = [ "minicbor-derive", ] [[package]] name = "minicbor-derive" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b3569c0dbfff1b8d5f1434c642b67f5bf81c0f354a3f5f8f180b549dba3c07c" +checksum = "2e071b3159835ee91df62dbdbfdd7ec366b7ea77c838f43aff4acda6b61bcfb9" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -2325,12 +2411,25 @@ dependencies = [ "kernel32-sys", "libc", "log 0.4.11", - "miow", + "miow 0.2.1", "net2", "slab", "winapi 0.2.8", ] +[[package]] +name = "mio" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f33bc887064ef1fd66020c9adfc45bb9f33d75a42096c81e7c56c65b75dd1a8b" +dependencies = [ + "libc", + "log 0.4.11", + "miow 0.3.6", + "ntapi", + "winapi 0.3.9", +] + [[package]] name = "miow" version = "0.2.1" @@ -2343,6 +2442,16 @@ dependencies = [ "ws2_32-sys", ] +[[package]] +name = "miow" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897" +dependencies = [ + "socket2", + "winapi 0.3.9", +] + [[package]] name = "multihash" version = "0.11.4" @@ -2358,6 +2467,33 @@ dependencies = [ "unsigned-varint", ] +[[package]] +name = "multihash" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dac63698b887d2d929306ea48b63760431ff8a24fac40ddb22f9c7f49fb7cab" +dependencies = [ + "digest 0.9.0", + "generic-array 0.14.4", + "multihash-derive", + "sha2 0.9.1", + "unsigned-varint", +] + +[[package]] +name = "multihash-derive" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" +dependencies = [ + "proc-macro-crate", + "proc-macro-error", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", + "synstructure", +] + [[package]] name = "multimap" version = "0.8.2" @@ -2378,6 +2514,20 @@ dependencies = [ "unsigned-varint", ] +[[package]] +name = "multistream-select" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dda822043bba2d6da31c4e14041f9794f8fb130a5959289038d0b809d8888614" +dependencies = [ + "bytes 0.5.6", + "futures", + "log 0.4.11", + "pin-project 1.0.1", + "smallvec", + "unsigned-varint", +] + [[package]] name = "native-tls" version = "0.2.4" @@ -2420,7 +2570,7 @@ dependencies = [ "futures-timer", "genawaiter", "hex 0.4.2", - "libp2p", + "libp2p 0.33.0", "log 0.4.11", "num 0.3.1", "pem", @@ -2444,7 +2594,7 @@ dependencies = [ "testcontainers", "thiserror", "time 0.2.22", - "tokio", + "tokio 0.2.22", "toml", "tracing", "tracing-futures", @@ -2482,6 +2632,15 @@ dependencies = [ "version_check 0.9.2", ] +[[package]] +name = "ntapi" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" +dependencies = [ + "winapi 0.3.9", +] + [[package]] name = "num" version = "0.1.42" @@ -2763,10 +2922,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7ad66970bbab360c97179b60906e2dc4aef1f7fca8ab4e5c5db8c97b16814a" dependencies = [ "arrayref", - "bs58", + "bs58 0.3.1", + "byteorder", + "data-encoding", + "multihash 0.11.4", + "percent-encoding 2.1.0", + "serde", + "static_assertions", + "unsigned-varint", + "url 2.2.0", +] + +[[package]] +name = "parity-multiaddr" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f51a30667591b14f96068b2d12f1306d07a41ebd98239d194356d4d9707ac16" +dependencies = [ + "arrayref", + "bs58 0.4.0", "byteorder", "data-encoding", - "multihash", + "multihash 0.13.2", "percent-encoding 2.1.0", "serde", "static_assertions", @@ -2947,6 +3124,15 @@ dependencies = [ "uint", ] +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml", +] + [[package]] name = "proc-macro-error" version = "1.0.4" @@ -3391,7 +3577,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded 0.7.0", - "tokio", + "tokio 0.2.22", "tokio-tls", "url 2.2.0", "wasm-bindgen", @@ -4287,13 +4473,25 @@ dependencies = [ "iovec", "lazy_static", "memchr", - "mio", + "mio 0.6.22", "num_cpus", "pin-project-lite 0.1.11", "slab", "tokio-macros", ] +[[package]] +name = "tokio" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "720ba21c25078711bf456d607987d95bce90f7c3bea5abe1db587862e7a1e87c" +dependencies = [ + "autocfg 1.0.1", + "libc", + "mio 0.7.6", + "pin-project-lite 0.2.0", +] + [[package]] name = "tokio-macros" version = "0.2.5" @@ -4315,7 +4513,7 @@ dependencies = [ "either", "futures", "thiserror", - "tokio", + "tokio 0.2.22", ] [[package]] @@ -4325,7 +4523,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343" dependencies = [ "native-tls", - "tokio", + "tokio 0.2.22", ] [[package]] @@ -4339,7 +4537,7 @@ dependencies = [ "futures-sink", "log 0.4.11", "pin-project-lite 0.1.11", - "tokio", + "tokio 0.2.22", ] [[package]] @@ -4670,7 +4868,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded 0.6.1", - "tokio", + "tokio 0.2.22", "tower-service", "tracing", "tracing-futures", diff --git a/cnd/Cargo.toml b/cnd/Cargo.toml index eb46b0fed7..a9f521b223 100644 --- a/cnd/Cargo.toml +++ b/cnd/Cargo.toml @@ -27,7 +27,7 @@ get_if_addrs = "0.5" hex = "0.4" http-api-problem = { version = "0.15", features = [ "with_warp" ] } ipnet = "2.3" -libp2p = { version = "0.29", default-features = false, features = [ "tcp-tokio", "yamux", "mplex", "dns", "noise" ] } +libp2p = { version = "0.33", default-features = false, features = [ "tcp-tokio", "yamux", "mplex", "dns", "noise" ] } libp2p-tokio-socks5 = "0.4" libsqlite3-sys = { version = ">=0.8.0, <0.13.0", features = [ "bundled" ] } log = { version = "0.4", features = [ "serde" ] } diff --git a/comit/Cargo.toml b/comit/Cargo.toml index cb5e92a885..aea0f0a36b 100644 --- a/comit/Cargo.toml +++ b/comit/Cargo.toml @@ -19,7 +19,7 @@ futures = { version = "0.3", default-features = false } genawaiter = { version = "0.99", default-features = false, features = [ "futures03" ] } hex = { version = "0.4", features = [ "serde" ] } levenshtein = "1" -libp2p = { version = "0.29", default-features = false, features = [ "gossipsub", "request-response" ] } +libp2p = { version = "0.33", default-features = false, features = [ "gossipsub", "request-response" ] } lru = "0.6" num = "0.3" primitive-types = { version = "0.7", features = [ "serde" ] } @@ -42,7 +42,7 @@ uuid = { version = "0.8", features = [ "serde", "v4" ] } [dev-dependencies] bitcoincore-rpc = "0.12" -libp2p = { version = "0.29", default-features = false, features = [ "yamux", "noise" ] } +libp2p = { version = "0.33", default-features = false, features = [ "yamux", "noise" ] } proptest = "0.10" spectral = { version = "0.6", default-features = false } tokio = { version = "0.2", features = [ "macros" ] } diff --git a/nectar/Cargo.toml b/nectar/Cargo.toml index 52f30c17da..3bdc9abdc6 100644 --- a/nectar/Cargo.toml +++ b/nectar/Cargo.toml @@ -24,7 +24,7 @@ futures = "0.3" futures-timer = "3.0" genawaiter = { version = "0.99", default-features = false, features = [ "futures03" ] } hex = "0.4" -libp2p = { version = "0.29", default-features = false, features = [ "tcp-tokio", "noise", "yamux", "mplex", "dns" ] } +libp2p = { version = "0.33", default-features = false, features = [ "tcp-tokio", "noise", "yamux", "mplex", "dns" ] } log = "0.4" num = "0.3" pem = "0.8"