From 9ef9aae8ffb1a060d35441f4d655de525598094f Mon Sep 17 00:00:00 2001 From: anilaltuner Date: Mon, 19 Aug 2024 13:50:49 +0300 Subject: [PATCH 1/3] gossipsub fork applied --- Cargo.lock | 989 +++++++++++++++++++++---------------------- Cargo.toml | 24 +- src/p2p/behaviour.rs | 24 +- src/p2p/client.rs | 12 +- 4 files changed, 495 insertions(+), 554 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 66188a7..69c54fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,7 +59,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if 1.0.0", - "getrandom 0.2.14", + "getrandom 0.2.15", "once_cell", "version_check", "zerocopy", @@ -97,9 +97,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.14" +version = "0.6.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" +checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" dependencies = [ "anstyle", "anstyle-parse", @@ -112,33 +112,33 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" +checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" [[package]] name = "anstyle-parse" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" +checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" +checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" dependencies = [ "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.3" +version = "3.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" +checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" dependencies = [ "anstyle", "windows-sys 0.52.0", @@ -152,9 +152,9 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "arrayref" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" +checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a" [[package]] name = "arrayvec" @@ -164,9 +164,9 @@ checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "asn1-rs" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ad1373757efa0f70ec53939aabc7152e1591cb485208052993070ac8d2429d" +checksum = "5493c3bedbacf7fd7382c6346bbd66687d12bbaad3a89a2d2c303ee6cf20b048" dependencies = [ "asn1-rs-derive", "asn1-rs-impl", @@ -180,13 +180,13 @@ dependencies = [ [[package]] name = "asn1-rs-derive" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7378575ff571966e99a744addeff0bff98b8ada0dedf1956d59e634db95eaac1" +checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", "synstructure", ] @@ -198,7 +198,7 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -228,9 +228,9 @@ dependencies = [ [[package]] name = "async-io" -version = "2.3.3" +version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d6baa8f0178795da0e71bc42c9e5d13261aac7ee549853162e66a241ba17964" +checksum = "444b0228950ee6501b3568d3c93bf1176a1fdbc3b758dcd9475046d30f4dc7e8" dependencies = [ "async-lock", "cfg-if 1.0.0", @@ -242,7 +242,7 @@ dependencies = [ "rustix", "slab", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -258,14 +258,14 @@ dependencies = [ [[package]] name = "async-openai" -version = "0.23.3" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47fdad7973458514157072ad405193e7f02fe1492359639e482aeaf8cae1bcd5" +checksum = "dc0e5ff98f9e7c605df4c88783a0439d1dc667ce86bd79e99d4164f8b0c05ccc" dependencies = [ "async-convert", "backoff", "base64 0.22.1", - "bytes 1.6.0", + "bytes 1.7.1", "derive_builder 0.20.0", "eventsource-stream", "futures", @@ -276,7 +276,7 @@ dependencies = [ "serde", "serde_json", "thiserror", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-stream", "tokio-util 0.7.11", "tracing", @@ -290,7 +290,7 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -312,7 +312,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -323,20 +323,7 @@ checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", -] - -[[package]] -name = "asynchronous-codec" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4057f2c32adbb2fc158e22fb38433c8e9bbf76b75a4732c7c0cbaf695fb65568" -dependencies = [ - "bytes 1.6.0", - "futures-sink", - "futures-util", - "memchr", - "pin-project-lite 0.2.14", + "syn 2.0.74", ] [[package]] @@ -345,7 +332,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a860072022177f903e59730004fb5dc13db9275b79bb2aef7ba8ce831956c233" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures-sink", "futures-util", "memchr", @@ -389,7 +376,7 @@ dependencies = [ "derive_utils", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -405,11 +392,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1" dependencies = [ "futures-core", - "getrandom 0.2.14", + "getrandom 0.2.15", "instant", "pin-project-lite 0.2.14", "rand 0.8.5", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -522,9 +509,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.9.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" +checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" dependencies = [ "memchr", "regex-automata 0.4.7", @@ -551,18 +538,21 @@ checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" [[package]] name = "bytes" -version = "1.6.0" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" dependencies = [ "serde", ] [[package]] name = "cc" -version = "1.0.103" +version = "1.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2755ff20a1d93490d26ba33a6f092a38a508398a5320df5d4b3014fcccce9410" +checksum = "72db2f7947ecee9b03b510377e8bb9077afa27176fdbff55c51027e976fdcc48" +dependencies = [ + "shlex", +] [[package]] name = "cfg-if" @@ -609,7 +599,7 @@ dependencies = [ "android-tzdata", "iana-time-zone", "num-traits", - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -625,9 +615,9 @@ dependencies = [ [[package]] name = "colorchoice" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" +checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" [[package]] name = "colored" @@ -672,9 +662,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "core2" @@ -687,9 +677,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.12" +version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" +checksum = "51e852e6dc9a5bed1fae92dd2375037bf2b768725bf3be87811edee3249d09ad" dependencies = [ "libc", ] @@ -703,12 +693,6 @@ dependencies = [ "cfg-if 1.0.0", ] -[[package]] -name = "critical-section" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7059fff8937831a9ae6f0fe4d658ffabf58f2ca96aa9dec1c889f936f705f216" - [[package]] name = "crossbeam-deque" version = "0.8.5" @@ -798,7 +782,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" dependencies = [ "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -866,7 +850,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -881,12 +865,12 @@ dependencies = [ [[package]] name = "darling" -version = "0.20.9" +version = "0.20.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83b2eb4d90d12bdda5ed17de686c2acb4c57914f8f921b8da7e112b5a36f3fe1" +checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" dependencies = [ - "darling_core 0.20.9", - "darling_macro 0.20.9", + "darling_core 0.20.10", + "darling_macro 0.20.10", ] [[package]] @@ -905,16 +889,16 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.20.9" +version = "0.20.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622687fe0bac72a04e5599029151f5796111b90f1baaa9b544d807a5e31cd120" +checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" dependencies = [ "fnv", "ident_case", "proc-macro2", "quote", "strsim 0.11.1", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -930,13 +914,13 @@ dependencies = [ [[package]] name = "darling_macro" -version = "0.20.9" +version = "0.20.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "733cabb43482b1a1b53eee8583c2b9e8684d592215ea83efd305dd31bc2f0178" +checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ - "darling_core 0.20.9", + "darling_core 0.20.10", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1038,10 +1022,10 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d48cda787f839151732d396ac69e3473923d54312c070ee21e9effcaa8ca0b1d" dependencies = [ - "darling 0.20.9", + "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1051,7 +1035,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "206868b8242f27cecce124c19fd88157fbd0dd334df2587f36417bafbc85097b" dependencies = [ "derive_builder_core 0.20.0", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1064,7 +1048,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1075,7 +1059,7 @@ checksum = "61bb5a1014ce6dfc2a378578509abe775a5aa06bff584a547555d9efdb81b926" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1106,7 +1090,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1116,10 +1100,10 @@ dependencies = [ "async-trait", "base64 0.22.1", "colored", - "dotenvy", "ecies", - "env_logger 0.11.3", + "env_logger 0.11.5", "fastbloom-rs", + "getrandom 0.2.15", "hex", "hex-literal", "libp2p", @@ -1135,7 +1119,7 @@ dependencies = [ "serde_json", "sha2 0.10.8", "sha3", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-util 0.7.11", "tracing", "tracing-subscriber", @@ -1162,12 +1146,6 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" -[[package]] -name = "dotenvy" -version = "0.15.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" - [[package]] name = "dtoa" version = "1.0.9" @@ -1185,12 +1163,12 @@ dependencies = [ [[package]] name = "ecies" -version = "0.2.7" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0206e602d2645ec8b24ed8307fadbc6c3110e2b11ab2f806fc02fee49327079" +checksum = "53f43496fc04523aa716c5dd76133cb6d7c81eb213375684d06a8b1683f8bc1e" dependencies = [ "aes-gcm", - "getrandom 0.2.14", + "getrandom 0.2.15", "hkdf", "libsecp256k1", "once_cell", @@ -1274,14 +1252,14 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] name = "env_filter" -version = "0.1.0" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea" +checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" dependencies = [ "log", "regex", @@ -1302,9 +1280,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.3" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b35839ba51819680ba087cd351788c9a3c476841207e0b8cee0b04722343b9" +checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" dependencies = [ "anstream", "anstyle", @@ -1403,9 +1381,9 @@ checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" [[package]] name = "flate2" -version = "1.0.30" +version = "1.0.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" +checksum = "7f211bbe8e69bbd0cfdea405084f128ae8b4aaa6b0b522fc8f2b009084797920" dependencies = [ "crc32fast", "miniz_oxide", @@ -1544,7 +1522,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1646,9 +1624,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -1705,15 +1683,15 @@ version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "fnv", "futures-core", "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.2.6", + "indexmap 2.4.0", "slab", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-util 0.7.11", "tracing", ] @@ -1725,14 +1703,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa82e28a107a8cc405f0839610bdc9b15f1e25ec7d696aa5cf173edbcb1486ab" dependencies = [ "atomic-waker", - "bytes 1.6.0", + "bytes 1.7.1", "fnv", "futures-core", "futures-sink", "http 1.1.0", - "indexmap 2.2.6", + "indexmap 2.4.0", "slab", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-util 0.7.11", "tracing", ] @@ -1824,7 +1802,7 @@ dependencies = [ "socket2 0.5.7", "thiserror", "tinyvec", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", "url", ] @@ -1846,7 +1824,7 @@ dependencies = [ "resolv-conf", "smallvec", "thiserror", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", ] @@ -1961,7 +1939,7 @@ dependencies = [ "markup5ever 0.12.1", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -1970,7 +1948,7 @@ version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "fnv", "itoa 1.0.11", ] @@ -1981,7 +1959,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "fnv", "itoa 1.0.11", ] @@ -2002,18 +1980,18 @@ version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "http 0.2.12", "pin-project-lite 0.2.14", ] [[package]] name = "http-body" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cac85db508abc24a2e48553ba12a996e87244a0395ce011e62b37158745d643" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "http 1.1.0", ] @@ -2023,10 +2001,10 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures-util", "http 1.1.0", - "http-body 1.0.0", + "http-body 1.0.1", "pin-project-lite 0.2.14", ] @@ -2080,11 +2058,11 @@ dependencies = [ [[package]] name = "hyper" -version = "0.14.29" +version = "0.14.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" +checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures-channel", "futures-core", "futures-util", @@ -2096,7 +2074,7 @@ dependencies = [ "itoa 1.0.11", "pin-project-lite 0.2.14", "socket2 0.5.7", - "tokio 1.38.0", + "tokio 1.39.2", "tower-service", "tracing", "want", @@ -2104,21 +2082,22 @@ dependencies = [ [[package]] name = "hyper" -version = "1.3.1" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d" +checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures-channel", "futures-util", "h2 0.4.5", "http 1.1.0", - "http-body 1.0.0", + "http-body 1.0.1", "httparse", + "httpdate 1.0.3", "itoa 1.0.11", "pin-project-lite 0.2.14", "smallvec", - "tokio 1.38.0", + "tokio 1.39.2", "want", ] @@ -2130,12 +2109,12 @@ checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155" dependencies = [ "futures-util", "http 1.1.0", - "hyper 1.3.1", + "hyper 1.4.1", "hyper-util", "rustls", "rustls-native-certs", "rustls-pki-types", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-rustls", "tower-service", "webpki-roots", @@ -2149,8 +2128,8 @@ checksum = "6eea26c5d0b6ab9d72219f65000af310f042a740926f7b2fa3553e774036e2e7" dependencies = [ "derive_builder 0.9.0", "dns-lookup", - "hyper 0.14.29", - "tokio 1.38.0", + "hyper 0.14.30", + "tokio 1.39.2", "tower-service", "tracing", ] @@ -2174,10 +2153,10 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ - "bytes 1.6.0", - "hyper 0.14.29", + "bytes 1.7.1", + "hyper 0.14.30", "native-tls", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-native-tls", ] @@ -2187,31 +2166,31 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "http-body-util", - "hyper 1.3.1", + "hyper 1.4.1", "hyper-util", "native-tls", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-native-tls", "tower-service", ] [[package]] name = "hyper-util" -version = "0.1.5" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b875924a60b96e5d7b9ae7b066540b1dd1cbd90d1828f54c92e02a283351c56" +checksum = "cde7055719c54e36e95e8719f95883f22072a48ede39db7fc17a4e1d5281e9b9" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures-channel", "futures-util", "http 1.1.0", - "http-body 1.0.0", - "hyper 1.3.1", + "http-body 1.0.1", + "hyper 1.4.1", "pin-project-lite 0.2.14", "socket2 0.5.7", - "tokio 1.38.0", + "tokio 1.39.2", "tower", "tower-service", "tracing", @@ -2302,7 +2281,7 @@ dependencies = [ "log", "rtnetlink", "system-configuration", - "tokio 1.38.0", + "tokio 1.39.2", "windows", ] @@ -2314,13 +2293,13 @@ checksum = "064d90fec10d541084e7b39ead8875a5a80d9114a2b18791565253bae25f49e4" dependencies = [ "async-trait", "attohttpc", - "bytes 1.6.0", + "bytes 1.7.1", "futures", "http 0.2.12", - "hyper 0.14.29", + "hyper 0.14.30", "log", "rand 0.8.5", - "tokio 1.38.0", + "tokio 1.39.2", "url", "xmltree", ] @@ -2337,9 +2316,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.6" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c" dependencies = [ "equivalent", "hashbrown 0.14.5", @@ -2392,9 +2371,9 @@ checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "is_terminal_polyfill" -version = "1.70.0" +version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "itertools" @@ -2419,9 +2398,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "js-sys" -version = "0.3.69" +version = "0.3.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" +checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a" dependencies = [ "wasm-bindgen", ] @@ -2467,7 +2446,7 @@ dependencies = [ "regex", "reqwest 0.12.5", "reqwest-eventsource", - "scraper 0.19.0", + "scraper 0.19.1", "secrecy", "serde", "serde_json", @@ -2475,7 +2454,7 @@ dependencies = [ "text-splitter", "thiserror", "tiktoken-rs", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-stream", "url", "urlencoding", @@ -2489,22 +2468,20 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.155" +version = "0.2.156" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" +checksum = "a5f43f184355eefb8d17fc948dbecf6c13be3c141f20d834ae842193a448c72a" [[package]] name = "libp2p" -version = "0.53.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "681fb3f183edfbedd7a57d32ebe5dcdc0b9f94061185acf3c30249349cc6fc99" +version = "0.54.1" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "either", "futures", "futures-timer", - "getrandom 0.2.14", - "instant", + "getrandom 0.2.15", "libp2p-allow-block-list", "libp2p-autonat", "libp2p-connection-limits", @@ -2533,9 +2510,8 @@ dependencies = [ [[package]] name = "libp2p-allow-block-list" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "107b238b794cb83ab53b74ad5dcf7cca3200899b72fe662840cfb52f5b0a32e6" +version = "0.4.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "libp2p-core", "libp2p-identity", @@ -2545,30 +2521,34 @@ dependencies = [ [[package]] name = "libp2p-autonat" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d95151726170e41b591735bf95c42b888fe4aa14f65216a9fbf0edcc04510586" +version = "0.13.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "async-trait", - "asynchronous-codec 0.6.2", + "asynchronous-codec", + "bytes 1.7.1", + "either", "futures", + "futures-bounded", "futures-timer", - "instant", "libp2p-core", "libp2p-identity", "libp2p-request-response", "libp2p-swarm", "quick-protobuf", - "quick-protobuf-codec 0.2.0", + "quick-protobuf-codec", "rand 0.8.5", + "rand_core 0.6.4", + "thiserror", "tracing", + "void", + "web-time", ] [[package]] name = "libp2p-connection-limits" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7cd50a78ccfada14de94cbacd3ce4b0138157f376870f13d3a8422cd075b4fd" +version = "0.4.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "libp2p-core", "libp2p-identity", @@ -2578,9 +2558,8 @@ dependencies = [ [[package]] name = "libp2p-core" -version = "0.41.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5a8920cbd8540059a01950c1e5c96ea8d89eb50c51cd366fc18bdf540a6e48f" +version = "0.42.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "either", "fnv", @@ -2606,32 +2585,30 @@ dependencies = [ [[package]] name = "libp2p-dcutr" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f7bb7fa2b9e6cad9c30a6f67e3ff5c1e4b658c62b6375e35861a85f9c97bf3" +version = "0.12.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "asynchronous-codec 0.6.2", + "asynchronous-codec", "either", "futures", "futures-bounded", "futures-timer", - "instant", "libp2p-core", "libp2p-identity", "libp2p-swarm", - "lru 0.11.1", + "lru", "quick-protobuf", - "quick-protobuf-codec 0.2.0", + "quick-protobuf-codec", "thiserror", "tracing", "void", + "web-time", ] [[package]] name = "libp2p-dns" -version = "0.41.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d17cbcf7160ff35c3e8e560de4a068fe9d6cb777ea72840e48eb76ff9576c4b6" +version = "0.42.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "async-trait", "futures", @@ -2645,42 +2622,41 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" -version = "0.46.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d665144a616dadebdc5fff186b1233488cdcd8bfb1223218ff084b6d052c94f7" +version = "0.47.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "asynchronous-codec 0.7.0", - "base64 0.21.7", + "asynchronous-codec", + "base64 0.22.1", "byteorder", - "bytes 1.6.0", + "bytes 1.7.1", "either", "fnv", "futures", "futures-ticker", - "getrandom 0.2.14", + "getrandom 0.2.15", "hex_fmt", - "instant", "libp2p-core", "libp2p-identity", "libp2p-swarm", + "lru_time_cache", "prometheus-client", "quick-protobuf", - "quick-protobuf-codec 0.3.1", + "quick-protobuf-codec", "rand 0.8.5", "regex", "sha2 0.10.8", "smallvec", "tracing", "void", + "web-time", ] [[package]] name = "libp2p-identify" -version = "0.44.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5d635ebea5ca0c3c3e77d414ae9b67eccf2a822be06091b9c1a0d13029a1e2f" +version = "0.45.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "asynchronous-codec 0.7.0", + "asynchronous-codec", "either", "futures", "futures-bounded", @@ -2688,9 +2664,9 @@ dependencies = [ "libp2p-core", "libp2p-identity", "libp2p-swarm", - "lru 0.12.3", + "lru", "quick-protobuf", - "quick-protobuf-codec 0.3.1", + "quick-protobuf-codec", "smallvec", "thiserror", "tracing", @@ -2719,24 +2695,22 @@ dependencies = [ [[package]] name = "libp2p-kad" -version = "0.45.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cc5767727d062c4eac74dd812c998f0e488008e82cce9c33b463d38423f9ad2" +version = "0.46.1" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "arrayvec", - "asynchronous-codec 0.7.0", - "bytes 1.6.0", + "asynchronous-codec", + "bytes 1.7.1", "either", "fnv", "futures", "futures-bounded", "futures-timer", - "instant", "libp2p-core", "libp2p-identity", "libp2p-swarm", "quick-protobuf", - "quick-protobuf-codec 0.3.1", + "quick-protobuf-codec", "rand 0.8.5", "sha2 0.10.8", "smallvec", @@ -2744,13 +2718,13 @@ dependencies = [ "tracing", "uint", "void", + "web-time", ] [[package]] name = "libp2p-mdns" -version = "0.45.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49007d9a339b3e1d7eeebc4d67c05dbf23d300b7d091193ec2d3f26802d7faf2" +version = "0.46.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "data-encoding", "futures", @@ -2762,19 +2736,17 @@ dependencies = [ "rand 0.8.5", "smallvec", "socket2 0.5.7", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", "void", ] [[package]] name = "libp2p-metrics" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdac91ae4f291046a3b2660c039a2830c931f84df2ee227989af92f7692d3357" +version = "0.14.2" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "futures", - "instant", "libp2p-core", "libp2p-dcutr", "libp2p-gossipsub", @@ -2786,16 +2758,16 @@ dependencies = [ "libp2p-swarm", "pin-project", "prometheus-client", + "web-time", ] [[package]] name = "libp2p-noise" -version = "0.44.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecd0545ce077f6ea5434bcb76e8d0fe942693b4380aaad0d34a358c2bd05793" +version = "0.45.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "asynchronous-codec 0.7.0", - "bytes 1.6.0", + "asynchronous-codec", + "bytes 1.7.1", "curve25519-dalek", "futures", "libp2p-core", @@ -2816,29 +2788,27 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.44.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1de5a6cf64fba7f7e8f2102711c9c6c043a8e56b86db8cd306492c517da3fb3" +version = "0.45.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "either", "futures", "futures-timer", - "instant", "libp2p-core", "libp2p-identity", "libp2p-swarm", "rand 0.8.5", "tracing", "void", + "web-time", ] [[package]] name = "libp2p-quic" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c67296ad4e092e23f92aea3d2bdb6f24eab79c0929ed816dfb460ea2f4567d2b" +version = "0.11.1" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures", "futures-timer", "if-watch", @@ -2852,18 +2822,17 @@ dependencies = [ "rustls", "socket2 0.5.7", "thiserror", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", ] [[package]] name = "libp2p-relay" -version = "0.17.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d1c667cfabf3dd675c8e3cea63b7b98434ecf51721b7894cbb01d29983a6a9b" +version = "0.18.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "asynchronous-codec 0.7.0", - "bytes 1.6.0", + "asynchronous-codec", + "bytes 1.7.1", "either", "futures", "futures-bounded", @@ -2872,7 +2841,7 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "quick-protobuf", - "quick-protobuf-codec 0.3.1", + "quick-protobuf-codec", "rand 0.8.5", "static_assertions", "thiserror", @@ -2883,15 +2852,13 @@ dependencies = [ [[package]] name = "libp2p-request-response" -version = "0.26.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c314fe28368da5e3a262553fb0ad575c1c8934c461e10de10265551478163836" +version = "0.27.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "async-trait", "futures", "futures-bounded", "futures-timer", - "instant", "libp2p-core", "libp2p-identity", "libp2p-swarm", @@ -2899,49 +2866,47 @@ dependencies = [ "smallvec", "tracing", "void", + "web-time", ] [[package]] name = "libp2p-swarm" -version = "0.44.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80cae6cb75f89dbca53862f9ebe0b9f463aa7b302762fcfaafb9e51dcc9b0f7e" +version = "0.45.1" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "either", "fnv", "futures", "futures-timer", - "instant", "libp2p-core", "libp2p-identity", "libp2p-swarm-derive", - "lru 0.12.3", + "lru", "multistream-select", "once_cell", "rand 0.8.5", "smallvec", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", "void", + "web-time", ] [[package]] name = "libp2p-swarm-derive" -version = "0.34.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5daceb9dd908417b6dfcfe8e94098bc4aac54500c282e78120b885dadc09b999" +version = "0.35.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] name = "libp2p-tcp" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b2460fc2748919adff99ecbc1aab296e4579e41f374fb164149bd2c9e529d4c" +version = "0.42.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "futures", "futures-timer", @@ -2950,15 +2915,14 @@ dependencies = [ "libp2p-core", "libp2p-identity", "socket2 0.5.7", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", ] [[package]] name = "libp2p-tls" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "251b17aebdd29df7e8f80e4d94b782fae42e934c49086e1a81ba23b60a8314f2" +version = "0.5.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "futures", "futures-rustls", @@ -2975,25 +2939,23 @@ dependencies = [ [[package]] name = "libp2p-upnp" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccf04b0e3ff3de52d07d5fd6c3b061d0e7f908ffc683c32d9638caedce86fc8" +version = "0.3.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "futures", "futures-timer", "igd-next", "libp2p-core", "libp2p-swarm", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", "void", ] [[package]] name = "libp2p-yamux" -version = "0.45.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "200cbe50349a44760927d50b431d77bed79b9c0a3959de1af8d24a63434b71e5" +version = "0.46.0" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "either", "futures", @@ -3102,18 +3064,9 @@ dependencies = [ [[package]] name = "lru" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a83fb7698b3643a0e34f9ae6f2e8f0178c0fd42f8b59d493aa271ff3a5bf21" -dependencies = [ - "hashbrown 0.14.5", -] - -[[package]] -name = "lru" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" +checksum = "37ee39891760e7d94734f6f63fedc29a2e4a152f836120753a72503f09fcf904" dependencies = [ "hashbrown 0.14.5", ] @@ -3127,6 +3080,12 @@ dependencies = [ "linked-hash-map", ] +[[package]] +name = "lru_time_cache" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9106e1d747ffd48e6be5bb2d97fa706ed25b144fbee4d5c02eae110cd8d6badd" + [[package]] name = "mac" version = "0.1.1" @@ -3284,13 +3243,14 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.11" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ + "hermit-abi 0.3.9", "libc", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -3307,21 +3267,26 @@ dependencies = [ [[package]] name = "mockito" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2f6e023aa5bdf392aa06c78e4a4e6d498baab5138d0c993503350ebbc37bf1e" +checksum = "09b34bd91b9e5c5b06338d392463e1318d683cf82ec3d3af4014609be6e2108d" dependencies = [ "assert-json-diff", + "bytes 1.7.1", "colored", - "futures-core", - "hyper 0.14.29", + "futures-util", + "http 1.1.0", + "http-body 1.0.1", + "http-body-util", + "hyper 1.4.1", + "hyper-util", "log", "rand 0.8.5", "regex", "serde_json", "serde_urlencoded", "similar", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -3367,15 +3332,14 @@ dependencies = [ [[package]] name = "multistream-select" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea0df8e5eec2298a62b326ee4f0d7fe1a6b90a09dfcf9df37b38f947a8c42f19" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures", - "log", "pin-project", "smallvec", - "unsigned-varint 0.7.2", + "tracing", + "unsigned-varint 0.8.0", ] [[package]] @@ -3450,13 +3414,13 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65b4b14489ab424703c092062176d52ba55485a89c076b4f9db05092b7223aa6" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures", "log", "netlink-packet-core", "netlink-sys", "thiserror", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -3465,11 +3429,11 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "416060d346fbaf1f23f9512963e3e878f1a78e707cb699ba9215761754244307" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures", "libc", "log", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -3576,9 +3540,9 @@ dependencies = [ [[package]] name = "object" -version = "0.36.1" +version = "0.36.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "081b846d1d56ddfc18fdf1a922e4f6e07a11768ea1b92dec44e42b72712ccfce" +checksum = "27b64972346851a39438c60b341ebc01bba47464ae329e55cf343eb93964efd9" dependencies = [ "memchr", ] @@ -3602,7 +3566,7 @@ dependencies = [ "log", "regex", "reqwest 0.12.5", - "scraper 0.19.0", + "scraper 0.19.1", "serde", "serde_json", "text-splitter", @@ -3627,13 +3591,13 @@ dependencies = [ "rand 0.8.5", "regex", "reqwest 0.12.5", - "scraper 0.19.0", + "scraper 0.19.1", "search_with_google", "serde", "serde_json", "simsimd", "text-splitter", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-util 0.7.11", ] @@ -3642,10 +3606,6 @@ name = "once_cell" version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" -dependencies = [ - "critical-section", - "portable-atomic", -] [[package]] name = "opaque-debug" @@ -3655,24 +3615,24 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "openai_dive" -version = "0.5.3" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bc4497e4ed579ba6e3489c1778eecc4fb4c814da62464c8269a7a59e0db4980" +checksum = "bf3d3fe8284533a78c1ab1cf7da0a682f6738c621a3639e55a6e8041901b151a" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "derive_builder 0.20.0", "reqwest 0.12.5", "serde", "serde_json", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-util 0.7.11", ] [[package]] name = "openssl" -version = "0.10.64" +version = "0.10.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" +checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" dependencies = [ "bitflags 2.6.0", "cfg-if 1.0.0", @@ -3691,7 +3651,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -3702,9 +3662,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.102" +version = "0.9.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" +checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" dependencies = [ "cc", "libc", @@ -3744,7 +3704,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -3883,7 +3843,7 @@ dependencies = [ "phf_shared 0.11.2", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -3930,7 +3890,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -3969,9 +3929,9 @@ checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" [[package]] name = "polling" -version = "3.7.2" +version = "3.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3ed00ed3fbf728b5816498ecd316d1716eecaced9c0c8d2c5a6740ca214985b" +checksum = "cc2790cd301dec6cd3b7a025e4815cf825724a51c98dccfe6a3e55f05ffb6511" dependencies = [ "cfg-if 1.0.0", "concurrent-queue", @@ -3979,7 +3939,7 @@ dependencies = [ "pin-project-lite 0.2.14", "rustix", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -4014,12 +3974,6 @@ dependencies = [ "bstr", ] -[[package]] -name = "portable-atomic" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" - [[package]] name = "powerfmt" version = "0.2.0" @@ -4028,9 +3982,12 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] [[package]] name = "precomputed-hash" @@ -4055,9 +4012,9 @@ dependencies = [ [[package]] name = "prometheus-client" -version = "0.22.2" +version = "0.22.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1ca959da22a332509f2a73ae9e5f23f9dcfc31fd3a54d71f159495bd5909baa" +checksum = "504ee9ff529add891127c4827eb481bd69dc0ebc72e9a682e187db4caa60c3ca" dependencies = [ "dtoa", "itoa 1.0.11", @@ -4073,7 +4030,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -4086,11 +4043,11 @@ dependencies = [ "futures-core", "futures-util", "http 0.2.12", - "hyper 0.14.29", + "hyper 0.14.30", "hyper-system-resolver", "pin-project-lite 0.2.14", "thiserror", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", "tracing-futures", "trust-dns-client", @@ -4099,9 +4056,9 @@ dependencies = [ [[package]] name = "pulldown-cmark" -version = "0.11.0" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8746739f11d39ce5ad5c2520a9b75285310dbfe78c541ccf832d38615765aec0" +checksum = "cb4e75767fbc9d92b90e4d0c011f61358cde9513b31ef07ea3631b15ffc3b4fd" dependencies = [ "bitflags 2.6.0", "memchr", @@ -4123,27 +4080,13 @@ dependencies = [ "byteorder", ] -[[package]] -name = "quick-protobuf-codec" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8ededb1cd78531627244d51dd0c7139fbe736c7d57af0092a76f0ffb2f56e98" -dependencies = [ - "asynchronous-codec 0.6.2", - "bytes 1.6.0", - "quick-protobuf", - "thiserror", - "unsigned-varint 0.7.2", -] - [[package]] name = "quick-protobuf-codec" version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15a0580ab32b169745d7a39db2ba969226ca16738931be152a3209b409de2474" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ - "asynchronous-codec 0.7.0", - "bytes 1.6.0", + "asynchronous-codec", + "bytes 1.7.1", "quick-protobuf", "thiserror", "unsigned-varint 0.8.0", @@ -4151,32 +4094,33 @@ dependencies = [ [[package]] name = "quinn" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4ceeeeabace7857413798eb1ffa1e9c905a9946a57d81fb69b4b71c4d8eb3ad" +checksum = "b22d8e7369034b9a7132bc2008cac12f2013c8132b45e0554e6e20e2617f2156" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures-io", "pin-project-lite 0.2.14", "quinn-proto", "quinn-udp", - "rustc-hash", + "rustc-hash 2.0.0", "rustls", + "socket2 0.5.7", "thiserror", - "tokio 1.38.0", + "tokio 1.39.2", "tracing", ] [[package]] name = "quinn-proto" -version = "0.11.3" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddf517c03a109db8100448a4be38d498df8a210a99fe0e1b9eaf39e78c640efe" +checksum = "ba92fb39ec7ad06ca2582c0ca834dfeadcaf06ddfc8e635c80aa7e1c05315fdd" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "rand 0.8.5", "ring 0.17.8", - "rustc-hash", + "rustc-hash 2.0.0", "rustls", "slab", "thiserror", @@ -4186,9 +4130,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.2" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9096629c45860fc7fb143e125eb826b5e721e10be3263160c7d60ca832cf8c46" +checksum = "8bffec3605b73c6f1754535084a85229fa8a30f86014e6c81aeec4abb68b0285" dependencies = [ "libc", "once_cell", @@ -4276,7 +4220,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.14", + "getrandom 0.2.15", ] [[package]] @@ -4345,18 +4289,18 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd" +checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" dependencies = [ "bitflags 2.6.0", ] [[package]] name = "regex" -version = "1.10.5" +version = "1.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" dependencies = [ "aho-corasick", "memchr", @@ -4438,14 +4382,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" dependencies = [ "base64 0.21.7", - "bytes 1.6.0", + "bytes 1.7.1", "encoding_rs", "futures-core", "futures-util", "h2 0.3.26", "http 0.2.12", "http-body 0.4.6", - "hyper 0.14.29", + "hyper 0.14.30", "hyper-tls 0.5.0", "ipnet", "js-sys", @@ -4461,7 +4405,7 @@ dependencies = [ "serde_urlencoded", "sync_wrapper 0.1.2", "system-configuration", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-native-tls", "tower-service", "url", @@ -4478,15 +4422,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7d6d2a27d57148378eb5e111173f4276ad26340ecc5c49a4a2152167a2d6a37" dependencies = [ "base64 0.22.1", - "bytes 1.6.0", + "bytes 1.7.1", "encoding_rs", "futures-core", "futures-util", "h2 0.4.5", "http 1.1.0", - "http-body 1.0.0", + "http-body 1.0.1", "http-body-util", - "hyper 1.3.1", + "hyper 1.4.1", "hyper-rustls", "hyper-tls 0.6.0", "hyper-util", @@ -4502,14 +4446,14 @@ dependencies = [ "quinn", "rustls", "rustls-native-certs", - "rustls-pemfile 2.1.2", + "rustls-pemfile 2.1.3", "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper 1.0.1", "system-configuration", - "tokio 1.38.0", + "tokio 1.39.2", "tokio-native-tls", "tokio-rustls", "tokio-util 0.7.11", @@ -4572,7 +4516,7 @@ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if 1.0.0", - "getrandom 0.2.14", + "getrandom 0.2.15", "libc", "spin 0.9.8", "untrusted 0.9.0", @@ -4591,7 +4535,7 @@ dependencies = [ "netlink-proto", "nix", "thiserror", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -4606,6 +4550,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" + [[package]] name = "rustc_version" version = "0.4.0" @@ -4639,26 +4589,26 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.10" +version = "0.23.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05cff451f60db80f490f3c182b77c35260baace73209e9cdbbe526bfe3a4d402" +checksum = "c58f8c84392efc0a126acce10fa59ff7b3d2ac06ab451a33f2741989b806b044" dependencies = [ "once_cell", "ring 0.17.8", "rustls-pki-types", - "rustls-webpki 0.102.4", + "rustls-webpki 0.102.6", "subtle", "zeroize", ] [[package]] name = "rustls-native-certs" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" +checksum = "a88d6d420651b496bdd98684116959239430022a115c1240e6c3993be0b15fba" dependencies = [ "openssl-probe", - "rustls-pemfile 2.1.2", + "rustls-pemfile 2.1.3", "rustls-pki-types", "schannel", "security-framework", @@ -4675,9 +4625,9 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "2.1.2" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" +checksum = "196fe16b00e106300d3e45ecfcb764fa292a535d7326a29a5875c579c7417425" dependencies = [ "base64 0.22.1", "rustls-pki-types", @@ -4685,9 +4635,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" +checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0" [[package]] name = "rustls-webpki" @@ -4701,9 +4651,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.102.4" +version = "0.102.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff448f7e92e913c4b7d4c6d8e4540a1724b319b4152b8aef6d4cf8339712b33e" +checksum = "8e6b52d4fda176fd835fdc55a835d4a89b8499cad995885a21149d5ad62f852e" dependencies = [ "ring 0.17.8", "rustls-pki-types", @@ -4719,8 +4669,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "rw-stream-sink" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8c9026ff5d2f23da5e45bbc283f156383001bfb09c4e44256d02c1a685fe9a1" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" dependencies = [ "futures", "pin-project", @@ -4766,15 +4715,15 @@ dependencies = [ [[package]] name = "scraper" -version = "0.19.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b80b33679ff7a0ea53d37f3b39de77ea0c75b12c5805ac43ec0c33b3051af1b" +checksum = "761fb705fdf625482d2ed91d3f0559dcfeab2798fe2771c69560a774865d0802" dependencies = [ "ahash", "cssparser 0.31.2", "ego-tree", "getopts", - "html5ever 0.26.0", + "html5ever 0.27.0", "once_cell", "selectors 0.25.0", "tendril", @@ -4805,9 +4754,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.11.0" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ "bitflags 2.6.0", "core-foundation", @@ -4818,9 +4767,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.11.0" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" +checksum = "75da29fe9b9b08fe9d6b22b5b4bcbc75d8db3aa31e639aa56bb62e9d46bfceaf" dependencies = [ "core-foundation-sys", "libc", @@ -4884,31 +4833,32 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.203" +version = "1.0.208" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" +checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.203" +version = "1.0.208" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" +checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] name = "serde_json" -version = "1.0.118" +version = "1.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d947f6b3163d8857ea16c4fa0dd4840d52f3041039a85decd46867eb1abef2e4" +checksum = "83c8e735a073ccf5be70aa8066aa984eaf2fa000db6c8d0100ae605b366d31ed" dependencies = [ "itoa 1.0.11", + "memchr", "ryu", "serde", ] @@ -4987,6 +4937,12 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "signal-hook-registry" version = "1.4.2" @@ -5007,9 +4963,9 @@ dependencies = [ [[package]] name = "similar" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa42c91313f1d05da9b26f267f931cf178d4aba455b4c4622dd7355eb80c6640" +checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e" [[package]] name = "simsimd" @@ -5180,7 +5136,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -5202,9 +5158,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.68" +version = "2.0.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9" +checksum = "1fceb41e3d546d0bd83421d3409b1460cc7444cd389341a4c880fe7a042cb3d7" dependencies = [ "proc-macro2", "quote", @@ -5231,7 +5187,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -5257,14 +5213,15 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.10.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" dependencies = [ "cfg-if 1.0.0", "fastrand", + "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -5314,22 +5271,22 @@ checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" [[package]] name = "thiserror" -version = "1.0.61" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" +checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.61" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" +checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -5354,7 +5311,7 @@ dependencies = [ "fancy-regex", "lazy_static", "parking_lot", - "rustc-hash", + "rustc-hash 1.1.0", ] [[package]] @@ -5401,9 +5358,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.6.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c55115c6fbe2d2bef26eb09ad74bde02d8255476fc0c7b515ef09fbb35742d82" +checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" dependencies = [ "tinyvec_macros", ] @@ -5433,32 +5390,31 @@ dependencies = [ [[package]] name = "tokio" -version = "1.38.0" +version = "1.39.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" +checksum = "daa4fb1bc778bd6f04cbfc4bb2d06a7396a8f299dc33ea1900cedaa316f467b1" dependencies = [ "backtrace", - "bytes 1.6.0", + "bytes 1.7.1", "libc", - "mio 0.8.11", - "num_cpus", + "mio 1.0.2", "parking_lot", "pin-project-lite 0.2.14", "signal-hook-registry", "socket2 0.5.7", "tokio-macros", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "tokio-macros" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" +checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -5468,7 +5424,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" dependencies = [ "native-tls", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -5479,7 +5435,7 @@ checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ "rustls", "rustls-pki-types", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -5490,7 +5446,7 @@ checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" dependencies = [ "futures-core", "pin-project-lite 0.2.14", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -5523,13 +5479,13 @@ version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" dependencies = [ - "bytes 1.6.0", + "bytes 1.7.1", "futures-core", "futures-sink", "futures-util", "hashbrown 0.14.5", "pin-project-lite 0.2.14", - "tokio 1.38.0", + "tokio 1.39.2", ] [[package]] @@ -5542,22 +5498,22 @@ dependencies = [ "futures-util", "pin-project", "pin-project-lite 0.2.14", - "tokio 1.38.0", + "tokio 1.39.2", "tower-layer", "tower-service", ] [[package]] name = "tower-layer" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] name = "tower-service" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" @@ -5579,7 +5535,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -5649,7 +5605,7 @@ dependencies = [ "rand 0.8.5", "thiserror", "time 0.3.36", - "tokio 1.38.0", + "tokio 1.39.2", "trust-dns-proto", ] @@ -5674,7 +5630,7 @@ dependencies = [ "smallvec", "thiserror", "tinyvec", - "tokio 1.38.0", + "tokio 1.39.2", "url", ] @@ -5759,10 +5715,6 @@ name = "unsigned-varint" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6889a77d49f1f013504cec6bf97a2c730394adedaeb1deb5ea08949a50541105" -dependencies = [ - "asynchronous-codec 0.6.2", - "bytes 1.6.0", -] [[package]] name = "unsigned-varint" @@ -5819,11 +5771,11 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" -version = "1.9.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de17fd2f7da591098415cff336e12965a28061ddace43b59cb3c430179c9439" +checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" dependencies = [ - "getrandom 0.2.14", + "getrandom 0.2.15", ] [[package]] @@ -5840,9 +5792,9 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "void" @@ -5879,11 +5831,12 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" +checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5" dependencies = [ "cfg-if 1.0.0", + "once_cell", "serde", "serde_json", "wasm-bindgen-macro", @@ -5891,24 +5844,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" +checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.42" +version = "0.4.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" +checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -5918,9 +5871,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" +checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5928,22 +5881,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" +checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" +checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" [[package]] name = "wasm-streams" @@ -5960,9 +5913,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.69" +version = "0.3.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" +checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0" dependencies = [ "js-sys", "wasm-bindgen", @@ -6029,11 +5982,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -6067,7 +6020,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -6085,7 +6038,16 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -6105,18 +6067,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", "windows_i686_gnullvm", - "windows_i686_msvc 0.52.5", - "windows_x86_64_gnu 0.52.5", - "windows_x86_64_gnullvm 0.52.5", - "windows_x86_64_msvc 0.52.5", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", ] [[package]] @@ -6127,9 +6089,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" @@ -6139,9 +6101,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" @@ -6151,15 +6113,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] name = "windows_i686_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" @@ -6169,9 +6131,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" @@ -6181,9 +6143,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" @@ -6193,9 +6155,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" @@ -6205,9 +6167,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winreg" @@ -6279,9 +6241,9 @@ dependencies = [ [[package]] name = "xml-rs" -version = "0.8.20" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791978798f0597cfc70478424c2b4fdc2b7a8024aaff78497ef00f24ef674193" +checksum = "539a77ee7c0de333dcc6da69b177380a0b81e0dacfa4f7344c465a36871ee601" [[package]] name = "xml5ever" @@ -6323,9 +6285,9 @@ checksum = "47f9da296a88b6bc150b896d17770a62d4dc6f63ecf0ed10a9c08a1cb3d12f24" [[package]] name = "xxhash-rust" -version = "0.8.10" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927da81e25be1e1a2901d59b81b37dd2efd1fc9c9345a55007f09bf5a2d3ee03" +checksum = "6a5cbf750400958819fb6178eaa83bee5cd9c29a26a40cc241df8c70fdd46984" [[package]] name = "yamux" @@ -6369,22 +6331,23 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.34" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ + "byteorder", "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.34" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] [[package]] @@ -6404,5 +6367,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.74", ] diff --git a/Cargo.toml b/Cargo.toml index b73d854..17c1453 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,10 +5,6 @@ edition = "2021" license = "Apache-2.0" readme = "README.md" -[profile.profiling] -inherits = "release" -debug = true - [dependencies] tokio-util = { version = "0.7.10", features = ["rt"] } tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal"] } @@ -42,27 +38,13 @@ fastbloom-rs = "0.5.9" ollama-workflows = { git = "https://github.com/andthattoo/ollama-workflows", rev = "25467d2" } # peer-to-peer -libp2p = { version = "0.53", features = [ - "dcutr", - "ping", - "relay", - "autonat", - "identify", - "tokio", - "gossipsub", - "mdns", - "noise", - "macros", - "tcp", - "yamux", - "quic", - "kad", -] } +libp2p = { git = "https://github.com/anilaltuner/rust-libp2p.git", rev = "eb0e57b", features = ["dcutr", "ping", "relay", "autonat", "identify", "tokio", "gossipsub", "mdns", "noise", "macros", "tcp", "yamux", "quic", "kad"] } + libp2p-identity = { version = "0.2.9", features = ["secp256k1", "ed25519"] } tracing = { version = "0.1.40" } tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } public-ip = "0.2.2" -dotenvy = "0.15.7" +getrandom = "0.2.15" [dev-dependencies] diff --git a/src/p2p/behaviour.rs b/src/p2p/behaviour.rs index 5f62482..e847ead 100644 --- a/src/p2p/behaviour.rs +++ b/src/p2p/behaviour.rs @@ -36,15 +36,11 @@ impl DriaBehaviour { /// Configures the Kademlia DHT behavior for the node. #[inline] fn create_kademlia_behavior(local_peer_id: PeerId) -> kad::Behaviour { - use kad::{Behaviour, Caching, Config}; + use kad::{Behaviour, Config}; let mut cfg = Config::default(); cfg.set_protocol_names(vec![DRIA_PROTO_NAME]) - .set_query_timeout(Duration::from_secs(5 * 60)) - .set_record_ttl(Some(Duration::from_secs(30))) - .set_replication_interval(None) // Disable replication - .set_caching(Caching::Disabled) - .set_publication_interval(None); + .set_query_timeout(Duration::from_secs(5 * 60)); Behaviour::with_config(local_peer_id, MemoryStore::new(local_peer_id), cfg) } @@ -87,9 +83,11 @@ fn create_gossipsub_behavior(id_keys: Keypair) -> gossipsub::Behaviour { Behaviour, ConfigBuilder, Message, MessageAuthenticity, MessageId, ValidationMode, }; - /// Validation mode for gossipsub messages - /// Since we verify messages at app-level, we are okay with `None`. - const VALIDATION_MODE: ValidationMode = ValidationMode::None; + /// Message TTL in seconds + const MESSAGE_TTL: u64 = 100; + + /// Message capacity for the gossipsub cache + const MESSAGE_CAPACITY: usize = 100; /// Max transmit size for payloads 256 KB const MAX_TRANSMIT_SIZE: usize = 262144; @@ -105,12 +103,12 @@ fn create_gossipsub_behavior(id_keys: Keypair) -> gossipsub::Behaviour { MessageAuthenticity::Signed(id_keys), ConfigBuilder::default() .heartbeat_interval(Duration::from_secs(10)) - .max_transmit_size(MAX_TRANSMIT_SIZE) - .validate_messages() - .validation_mode(VALIDATION_MODE) + .max_transmit_size(MAX_TRANSMIT_SIZE) // 256 KB .message_id_fn(message_id_fn) + .message_ttl(Duration::from_secs(MESSAGE_TTL)) + .message_capacity(MESSAGE_CAPACITY) .build() .expect("Valid config"), // TODO: better error handling ) - .expect("Valid behaviour") // TODO: better error handling + .expect("Valid behaviour") // TODO: better error handling } diff --git a/src/p2p/client.rs b/src/p2p/client.rs index b1228e0..cbea89d 100644 --- a/src/p2p/client.rs +++ b/src/p2p/client.rs @@ -237,15 +237,13 @@ impl P2PClient { )) => self.handle_closest_peers_result(result), SwarmEvent::Behaviour(DriaBehaviourEvent::Identify(identify::Event::Received { peer_id, - info, + info, connection_id })) => self.handle_identify_event(peer_id, info), SwarmEvent::Behaviour(DriaBehaviourEvent::Gossipsub(gossipsub::Event::Message { propagation_source: peer_id, message_id, message, })) => { - // log::info!("Received message ({}) from peer: {}", message_id, peer_id); - // log::debug!("Message: {:?}", message); return Some((peer_id, message_id, message)); } SwarmEvent::NewListenAddr { address, .. } => { @@ -295,11 +293,11 @@ impl P2PClient { peers.len() ); for peer in peers { - log::debug!("Gossipsub: Adding peer {peer}"); + log::debug!("Gossipsub: Adding peer {0}", peer.peer_id); self.swarm .behaviour_mut() .gossipsub - .add_explicit_peer(&peer); + .add_explicit_peer(&peer.peer_id); } } else { log::warn!("Kademlia: Query finished with no closest peers."); @@ -312,11 +310,11 @@ impl P2PClient { peers.len() ); for peer in peers { - log::info!("Gossipsub: Adding peer {peer}"); + log::info!("Gossipsub: Adding peer {0}", peer.peer_id); self.swarm .behaviour_mut() .gossipsub - .add_explicit_peer(&peer); + .add_explicit_peer(&peer.peer_id); } } else { log::warn!("Kademlia: Query timed out with no closest peers."); From 7c2888c156f1c563363bb4e2a30ad20e31089e37 Mon Sep 17 00:00:00 2001 From: anilaltuner Date: Mon, 19 Aug 2024 13:56:09 +0300 Subject: [PATCH 2/3] recover cargo.toml changes --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 17c1453..c539ee9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,10 @@ edition = "2021" license = "Apache-2.0" readme = "README.md" +[profile.profiling] +inherits = "release" +debug = true + [dependencies] tokio-util = { version = "0.7.10", features = ["rt"] } tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal"] } @@ -44,6 +48,7 @@ libp2p-identity = { version = "0.2.9", features = ["secp256k1", "ed25519"] } tracing = { version = "0.1.40" } tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } public-ip = "0.2.2" +dotenvy = "0.15.7" getrandom = "0.2.15" From e013ba5c226d296e7138da87906f28f7192bd9c2 Mon Sep 17 00:00:00 2001 From: erhant Date: Mon, 19 Aug 2024 18:52:14 +0300 Subject: [PATCH 3/3] using fork to fix mem and cpu issues --- Cargo.lock | 62 ++++++++++++++++++++++++-------------------- Cargo.toml | 25 +++++++++++++++--- Makefile | 2 +- src/node.rs | 2 +- src/p2p/behaviour.rs | 14 +++++----- src/p2p/client.rs | 5 ++-- 6 files changed, 67 insertions(+), 43 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 69c54fa..5142f07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1095,15 +1095,15 @@ dependencies = [ [[package]] name = "dkn-compute" -version = "0.1.4" +version = "0.1.5" dependencies = [ "async-trait", "base64 0.22.1", "colored", + "dotenvy", "ecies", "env_logger 0.11.5", "fastbloom-rs", - "getrandom 0.2.15", "hex", "hex-literal", "libp2p", @@ -1146,6 +1146,12 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" +[[package]] +name = "dotenvy" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" + [[package]] name = "dtoa" version = "1.0.9" @@ -2475,7 +2481,7 @@ checksum = "a5f43f184355eefb8d17fc948dbecf6c13be3c141f20d834ae842193a448c72a" [[package]] name = "libp2p" version = "0.54.1" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "bytes 1.7.1", "either", @@ -2511,7 +2517,7 @@ dependencies = [ [[package]] name = "libp2p-allow-block-list" version = "0.4.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "libp2p-core", "libp2p-identity", @@ -2522,7 +2528,7 @@ dependencies = [ [[package]] name = "libp2p-autonat" version = "0.13.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "async-trait", "asynchronous-codec", @@ -2548,7 +2554,7 @@ dependencies = [ [[package]] name = "libp2p-connection-limits" version = "0.4.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "libp2p-core", "libp2p-identity", @@ -2559,7 +2565,7 @@ dependencies = [ [[package]] name = "libp2p-core" version = "0.42.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "either", "fnv", @@ -2586,7 +2592,7 @@ dependencies = [ [[package]] name = "libp2p-dcutr" version = "0.12.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "asynchronous-codec", "either", @@ -2608,7 +2614,7 @@ dependencies = [ [[package]] name = "libp2p-dns" version = "0.42.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "async-trait", "futures", @@ -2623,7 +2629,7 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" version = "0.47.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "asynchronous-codec", "base64 0.22.1", @@ -2654,7 +2660,7 @@ dependencies = [ [[package]] name = "libp2p-identify" version = "0.45.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "asynchronous-codec", "either", @@ -2696,7 +2702,7 @@ dependencies = [ [[package]] name = "libp2p-kad" version = "0.46.1" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "arrayvec", "asynchronous-codec", @@ -2724,7 +2730,7 @@ dependencies = [ [[package]] name = "libp2p-mdns" version = "0.46.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "data-encoding", "futures", @@ -2744,7 +2750,7 @@ dependencies = [ [[package]] name = "libp2p-metrics" version = "0.14.2" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "futures", "libp2p-core", @@ -2764,7 +2770,7 @@ dependencies = [ [[package]] name = "libp2p-noise" version = "0.45.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "asynchronous-codec", "bytes 1.7.1", @@ -2789,7 +2795,7 @@ dependencies = [ [[package]] name = "libp2p-ping" version = "0.45.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "either", "futures", @@ -2806,7 +2812,7 @@ dependencies = [ [[package]] name = "libp2p-quic" version = "0.11.1" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "bytes 1.7.1", "futures", @@ -2829,7 +2835,7 @@ dependencies = [ [[package]] name = "libp2p-relay" version = "0.18.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "asynchronous-codec", "bytes 1.7.1", @@ -2853,7 +2859,7 @@ dependencies = [ [[package]] name = "libp2p-request-response" version = "0.27.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "async-trait", "futures", @@ -2872,7 +2878,7 @@ dependencies = [ [[package]] name = "libp2p-swarm" version = "0.45.1" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "either", "fnv", @@ -2895,7 +2901,7 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" version = "0.35.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -2906,7 +2912,7 @@ dependencies = [ [[package]] name = "libp2p-tcp" version = "0.42.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "futures", "futures-timer", @@ -2922,7 +2928,7 @@ dependencies = [ [[package]] name = "libp2p-tls" version = "0.5.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "futures", "futures-rustls", @@ -2940,7 +2946,7 @@ dependencies = [ [[package]] name = "libp2p-upnp" version = "0.3.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "futures", "futures-timer", @@ -2955,7 +2961,7 @@ dependencies = [ [[package]] name = "libp2p-yamux" version = "0.46.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "either", "futures", @@ -3332,7 +3338,7 @@ dependencies = [ [[package]] name = "multistream-select" version = "0.13.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "bytes 1.7.1", "futures", @@ -4083,7 +4089,7 @@ dependencies = [ [[package]] name = "quick-protobuf-codec" version = "0.3.1" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "asynchronous-codec", "bytes 1.7.1", @@ -4669,7 +4675,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "rw-stream-sink" version = "0.4.0" -source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=eb0e57b#eb0e57bcf4e252ea134a0b2d7d74b3c75d164677" +source = "git+https://github.com/anilaltuner/rust-libp2p.git?rev=84b6d6f#84b6d6f34ad18272a74ebe70945ba35cf1df18d4" dependencies = [ "futures", "pin-project", diff --git a/Cargo.toml b/Cargo.toml index c539ee9..4d3f5a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dkn-compute" -version = "0.1.4" +version = "0.1.5" edition = "2021" license = "Apache-2.0" readme = "README.md" @@ -19,6 +19,7 @@ async-trait = "0.1.81" reqwest = "0.12.5" # utilities +dotenvy = "0.15.7" base64 = "0.22.0" hex = "0.4.3" hex-literal = "0.4.1" @@ -42,14 +43,30 @@ fastbloom-rs = "0.5.9" ollama-workflows = { git = "https://github.com/andthattoo/ollama-workflows", rev = "25467d2" } # peer-to-peer -libp2p = { git = "https://github.com/anilaltuner/rust-libp2p.git", rev = "eb0e57b", features = ["dcutr", "ping", "relay", "autonat", "identify", "tokio", "gossipsub", "mdns", "noise", "macros", "tcp", "yamux", "quic", "kad"] } +libp2p = { git = "https://github.com/anilaltuner/rust-libp2p.git", rev = "84b6d6f", features = [ + "dcutr", + "ping", + "relay", + "autonat", + "identify", + "tokio", + "gossipsub", + "mdns", + "noise", + "macros", + "tcp", + "yamux", + "quic", + "kad", +] } libp2p-identity = { version = "0.2.9", features = ["secp256k1", "ed25519"] } tracing = { version = "0.1.40" } tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } public-ip = "0.2.2" -dotenvy = "0.15.7" -getrandom = "0.2.15" + +# TODO: solves ecies dependency issue +# getrandom = "0.2.15" [dev-dependencies] diff --git a/Makefile b/Makefile index e85da79..4a29ac6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ launch: .PHONY: run # | Run with INFO log-level run: - RUST_LOG=warn,dkn_compute=info cargo run + RUST_LOG=none,dkn_compute=info cargo run .PHONY: debug # | Run with DEBUG log-level with INFO log-level workflows debug: diff --git a/src/node.rs b/src/node.rs index b12f649..95fff83 100644 --- a/src/node.rs +++ b/src/node.rs @@ -136,7 +136,7 @@ impl DriaComputeNode { // handle message w.r.t topic if std::matches!(topic_str, PINGPONG_LISTEN_TOPIC | WORKFLOW_LISTEN_TOPIC) { // ensure that the message is from a valid source (origin) - let source_peer_id = message.source.clone(); + let source_peer_id = message.source; // let source_peer_id = match message.source.clone() { // Some(peer) => peer, // None => { diff --git a/src/p2p/behaviour.rs b/src/p2p/behaviour.rs index e847ead..6761bd4 100644 --- a/src/p2p/behaviour.rs +++ b/src/p2p/behaviour.rs @@ -38,9 +38,10 @@ impl DriaBehaviour { fn create_kademlia_behavior(local_peer_id: PeerId) -> kad::Behaviour { use kad::{Behaviour, Config}; - let mut cfg = Config::default(); - cfg.set_protocol_names(vec![DRIA_PROTO_NAME]) - .set_query_timeout(Duration::from_secs(5 * 60)); + const QUERY_TIMEOUT_SECS: u64 = 5 * 60; // 5 minutes + + let mut cfg = Config::new(DRIA_PROTO_NAME); + cfg.set_query_timeout(Duration::from_secs(QUERY_TIMEOUT_SECS)); Behaviour::with_config(local_peer_id, MemoryStore::new(local_peer_id), cfg) } @@ -79,9 +80,7 @@ fn create_autonat_behavior(key: PublicKey) -> autonat::Behaviour { /// Configures the Gossipsub behavior for pub/sub messaging across peers. #[inline] fn create_gossipsub_behavior(id_keys: Keypair) -> gossipsub::Behaviour { - use gossipsub::{ - Behaviour, ConfigBuilder, Message, MessageAuthenticity, MessageId, ValidationMode, - }; + use gossipsub::{Behaviour, ConfigBuilder, Message, MessageAuthenticity, MessageId}; /// Message TTL in seconds const MESSAGE_TTL: u64 = 100; @@ -107,8 +106,9 @@ fn create_gossipsub_behavior(id_keys: Keypair) -> gossipsub::Behaviour { .message_id_fn(message_id_fn) .message_ttl(Duration::from_secs(MESSAGE_TTL)) .message_capacity(MESSAGE_CAPACITY) + .max_ihave_length(100) .build() .expect("Valid config"), // TODO: better error handling ) - .expect("Valid behaviour") // TODO: better error handling + .expect("Valid behaviour") // TODO: better error handling } diff --git a/src/p2p/client.rs b/src/p2p/client.rs index cbea89d..5c8767d 100644 --- a/src/p2p/client.rs +++ b/src/p2p/client.rs @@ -42,7 +42,7 @@ impl P2PClient { let mut swarm = SwarmBuilder::with_existing_identity(keypair) .with_tokio() .with_tcp( - tcp::Config::default().port_reuse(true), + tcp::Config::default(), noise::Config::new, yamux::Config::default, ) @@ -237,7 +237,8 @@ impl P2PClient { )) => self.handle_closest_peers_result(result), SwarmEvent::Behaviour(DriaBehaviourEvent::Identify(identify::Event::Received { peer_id, - info, connection_id + info, + .. })) => self.handle_identify_event(peer_id, info), SwarmEvent::Behaviour(DriaBehaviourEvent::Gossipsub(gossipsub::Event::Message { propagation_source: peer_id,