From 87201adb2f867630f9ef62bb8ec82383eb6bcd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Tue, 28 Dec 2021 16:59:39 +0100 Subject: [PATCH 1/7] gossip: update libp2p to 0.39.0 --- Cargo.lock | 379 +++++++++--------- apps/Cargo.toml | 2 +- .../lib/node/gossip/behaviour/discovery.rs | 1 + apps/src/lib/node/gossip/mod.rs | 1 + tests/Cargo.toml | 2 +- 5 files changed, 188 insertions(+), 197 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f4e3491455..c96effb2de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -49,7 +49,7 @@ dependencies = [ "cipher", "ctr", "ghash", - "subtle 2.4.1", + "subtle", ] [[package]] @@ -100,7 +100,7 @@ dependencies = [ "ibc 0.8.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/rebase_v0.23.0)", "ibc-proto 0.12.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/abcipp-v0.23.0)", "ibc-proto 0.12.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/rebase_v0.23.0)", - "itertools 0.10.3", + "itertools", "parity-wasm", "pretty_assertions", "proptest 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -113,7 +113,7 @@ dependencies = [ "rust_decimal", "serde 1.0.132", "serde_json", - "sha2 0.9.8", + "sha2", "sparse-merkle-tree", "tempfile", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", @@ -158,7 +158,7 @@ dependencies = [ "hex", "ibc 0.8.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/abcipp-v0.23.0)", "ibc 0.8.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/rebase_v0.23.0)", - "itertools 0.10.3", + "itertools", "jsonpath_lib", "libc", "libloading 0.7.2", @@ -183,7 +183,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_regex", - "sha2 0.9.8", + "sha2", "signal-hook", "sparse-merkle-tree", "sysinfo", @@ -248,12 +248,12 @@ dependencies = [ "ibc 0.8.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/rebase_v0.23.0)", "ibc-proto 0.12.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/abcipp-v0.23.0)", "ibc-proto 0.12.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/rebase_v0.23.0)", - "itertools 0.10.3", + "itertools", "libp2p", "pretty_assertions", "rexpect", "serde_json", - "sha2 0.9.8", + "sha2", "tempfile", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", @@ -797,7 +797,7 @@ version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a4e37d16930f5459780f5621038b6382b9bb37c19016f39fb6b5808d831f174" dependencies = [ - "crypto-mac 0.8.0", + "crypto-mac", "digest 0.9.0", "opaque-debug 0.3.0", ] @@ -834,7 +834,7 @@ dependencies = [ "cc", "cfg-if 0.1.10", "constant_time_eq", - "crypto-mac 0.8.0", + "crypto-mac", "digest 0.9.0", ] @@ -1423,16 +1423,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" -[[package]] -name = "crypto-mac" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4434400df11d95d556bac068ddfedd482915eb18fe8bea89bc80b6e4b1c179e5" -dependencies = [ - "generic-array 0.12.4", - "subtle 1.0.0", -] - [[package]] name = "crypto-mac" version = "0.8.0" @@ -1440,7 +1430,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ "generic-array 0.14.4", - "subtle 2.4.1", + "subtle", ] [[package]] @@ -1503,7 +1493,7 @@ dependencies = [ "byteorder", "digest 0.9.0", "rand_core 0.5.1", - "subtle 2.4.1", + "subtle", "zeroize", ] @@ -1729,7 +1719,7 @@ dependencies = [ "rand 0.7.3", "serde 1.0.132", "serde_bytes", - "sha2 0.9.8", + "sha2", "zeroize", ] @@ -2234,7 +2224,7 @@ dependencies = [ "blake2b_simd", "chacha20", "hex", - "itertools 0.10.3", + "itertools", "miracl_core", "rand 0.8.4", "rand_core 0.6.3", @@ -2376,22 +2366,22 @@ checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f" [[package]] name = "hmac" -version = "0.7.1" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dcb5e64cda4c23119ab41ba960d1e170a774c8e4b9d9e6a9bc18aabf5e59695" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" dependencies = [ - "crypto-mac 0.7.0", - "digest 0.8.1", + "crypto-mac", + "digest 0.9.0", ] [[package]] name = "hmac-drbg" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6e570451493f10f6581b48cdd530413b63ea9e780f544bfd3bdcaa0d89d1a7b" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ - "digest 0.8.1", - "generic-array 0.12.4", + "digest 0.9.0", + "generic-array 0.14.4", "hmac", ] @@ -2561,7 +2551,7 @@ dependencies = [ "serde 1.0.132", "serde_derive", "serde_json", - "sha2 0.9.8", + "sha2", "subtle-encoding", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", "tendermint-light-client 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", @@ -2588,7 +2578,7 @@ dependencies = [ "serde 1.0.132", "serde_derive", "serde_json", - "sha2 0.9.8", + "sha2", "subtle-encoding", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", "tendermint-light-client 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", @@ -2635,7 +2625,7 @@ dependencies = [ "hex", "prost 0.9.0", "ripemd160", - "sha2 0.9.8", + "sha2", "sha3", "sp-std", ] @@ -2787,15 +2777,6 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9" -[[package]] -name = "itertools" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.10.3" @@ -2942,9 +2923,9 @@ dependencies = [ [[package]] name = "libp2p" -version = "0.38.0" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebbb17eece4aec5bb970880c73825c16ca59ca05a4e41803751e68c7e5f0c618" +checksum = "9004c06878ef8f3b4b4067e69a140d87ed20bf777287f82223e49713b36ee433" dependencies = [ "atomic", "bytes 1.1.0", @@ -2972,7 +2953,7 @@ dependencies = [ "libp2p-wasm-ext", "libp2p-websocket", "libp2p-yamux", - "parity-multiaddr", + "multiaddr", "parking_lot 0.11.2", "pin-project 1.0.8", "smallvec 1.7.0", @@ -2981,9 +2962,9 @@ dependencies = [ [[package]] name = "libp2p-core" -version = "0.28.3" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "554d3e7e9e65f939d66b75fd6a4c67f258fe250da61b91f46c545fc4a89b51d9" +checksum = "af9b4abdeaa420593a297c8592f63fad4234f4b88dc9343b8fd8e736c35faa59" dependencies = [ "asn1_der", "bs58", @@ -2995,29 +2976,29 @@ dependencies = [ "lazy_static 1.4.0", "libsecp256k1", "log 0.4.14", + "multiaddr", "multihash", "multistream-select", - "parity-multiaddr", "parking_lot 0.11.2", "pin-project 1.0.8", - "prost 0.7.0", - "prost-build 0.7.0", + "prost 0.8.0", + "prost-build 0.8.0", "rand 0.7.3", "ring", "rw-stream-sink", - "sha2 0.9.8", + "sha2", "smallvec 1.7.0", "thiserror", - "unsigned-varint 0.7.1", + "unsigned-varint", "void", "zeroize", ] [[package]] name = "libp2p-deflate" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2181a641cd15f9b6ba71b1335800f309012a0a97a29ffaabbbf40e9d3d58f08" +checksum = "66097fccc0b7f8579f90a03ea76ba6196332ea049fd07fd969490a06819dcdc8" dependencies = [ "flate2", "futures 0.3.19", @@ -3026,9 +3007,9 @@ dependencies = [ [[package]] name = "libp2p-dns" -version = "0.28.1" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62e63dab8b5ff35e0c101a3e51e843ba782c07bbb1682f5fd827622e0d02b98b" +checksum = "58ff08b3196b85a17f202d80589e93b1660a574af67275706657fdc762e42c32" dependencies = [ "async-std-resolver", "futures 0.3.19", @@ -3040,9 +3021,9 @@ dependencies = [ [[package]] name = "libp2p-floodsub" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48a9b570f6766301d9c4aa00fce3554cad1598e2f466debbc4dde909028417cf" +checksum = "404eca8720967179dac7a5b4275eb91f904a53859c69ca8d018560ad6beb214f" dependencies = [ "cuckoofilter", "fnv", @@ -3050,17 +3031,17 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.7.0", - "prost-build 0.7.0", + "prost 0.8.0", + "prost-build 0.8.0", "rand 0.7.3", "smallvec 1.7.0", ] [[package]] name = "libp2p-gossipsub" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e562308761818b0c52f2a81a0544b9c22d0cf56d7b2d928a0ff61382404498ce" +checksum = "b1cc48709bcbc3a3321f08a73560b4bbb4166a7d56f6fdb615bc775f4f91058e" dependencies = [ "asynchronous-codec", "base64 0.13.0", @@ -3072,37 +3053,37 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.7.0", - "prost-build 0.7.0", + "prost 0.8.0", + "prost-build 0.8.0", "rand 0.7.3", "regex", - "sha2 0.9.8", + "sha2", "smallvec 1.7.0", - "unsigned-varint 0.7.1", + "unsigned-varint", "wasm-timer", ] [[package]] name = "libp2p-identify" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f668f00efd9883e8b7bcc582eaf0164615792608f886f6577da18bcbeea0a46" +checksum = "a7b61f6cf07664fb97016c318c4d4512b3dd4cc07238607f3f0163245f99008e" dependencies = [ "futures 0.3.19", "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.7.0", - "prost-build 0.7.0", + "prost 0.8.0", + "prost-build 0.8.0", "smallvec 1.7.0", "wasm-timer", ] [[package]] name = "libp2p-kad" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b07312ebe5ee4fd2404447a0609814574df55c65d4e20838b957bbd34907d820" +checksum = "50ed78489c87924235665a0ab345b298ee34dff0f7ad62c0ba6608b2144fb75e" dependencies = [ "arrayvec", "asynchronous-codec", @@ -3113,22 +3094,22 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.7.0", - "prost-build 0.7.0", + "prost 0.8.0", + "prost-build 0.8.0", "rand 0.7.3", - "sha2 0.9.8", + "sha2", "smallvec 1.7.0", "uint", - "unsigned-varint 0.7.1", + "unsigned-varint", "void", "wasm-timer", ] [[package]] name = "libp2p-mdns" -version = "0.30.2" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4efa70c1c3d2d91237f8546e27aeb85e287d62c066a7b4f3ea6a696d43ced714" +checksum = "a29e6cbc2a24b8471b6567e580a0e8e7b70a6d0f0ea2be0844d1e842d7d4fa33" dependencies = [ "async-io", "data-encoding", @@ -3147,9 +3128,9 @@ dependencies = [ [[package]] name = "libp2p-mplex" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85e9b544335d1ed30af71daa96edbefadef6f19c7a55f078b9fc92c87163105d" +checksum = "313d9ea526c68df4425f580024e67a9d3ffd49f2c33de5154b1f5019816f7a99" dependencies = [ "asynchronous-codec", "bytes 1.1.0", @@ -3160,14 +3141,14 @@ dependencies = [ "parking_lot 0.11.2", "rand 0.7.3", "smallvec 1.7.0", - "unsigned-varint 0.7.1", + "unsigned-varint", ] [[package]] name = "libp2p-noise" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57a2aa6fc4e6855eaf9ea1941a14f7ec4df35636fb6b85951e17481df8dcecf6" +checksum = "3f1db7212f342b6ba7c981cc40e31f76e9e56cb48e65fa4c142ecaca5839523e" dependencies = [ "bytes 1.1.0", "curve25519-dalek", @@ -3175,10 +3156,10 @@ dependencies = [ "lazy_static 1.4.0", "libp2p-core", "log 0.4.14", - "prost 0.7.0", - "prost-build 0.7.0", + "prost 0.8.0", + "prost-build 0.8.0", "rand 0.8.4", - "sha2 0.9.8", + "sha2", "snow", "static_assertions", "x25519-dalek", @@ -3187,9 +3168,9 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4bfaffac63bf3c7ec11ed9d8879d455966ddea7e78ee14737f0b6dce0d1cd1" +checksum = "2482cfd9eb0b7a0baaf3e7b329dc4f2785181a161b1a47b7192f8d758f54a439" dependencies = [ "futures 0.3.19", "libp2p-core", @@ -3202,18 +3183,18 @@ dependencies = [ [[package]] name = "libp2p-plaintext" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c8c37b4d2a075b4be8442760a5f8c037180f0c8dd5b5734b9978ab868b3aa11" +checksum = "13b4783e5423870b9a5c199f65a7a3bc66d86ab56b2b9beebf3c338d889cf8e4" dependencies = [ "asynchronous-codec", "bytes 1.1.0", "futures 0.3.19", "libp2p-core", "log 0.4.14", - "prost 0.7.0", - "prost-build 0.7.0", - "unsigned-varint 0.7.1", + "prost 0.8.0", + "prost-build 0.8.0", + "unsigned-varint", "void", ] @@ -3233,9 +3214,9 @@ dependencies = [ [[package]] name = "libp2p-relay" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b8786aca3f18671d8776289706a5521f6c9124a820f69e358de214b9939440d" +checksum = "0133f6cfd81cdc16e716de2982e012c62e6b9d4f12e41967b3ee361051c622aa" dependencies = [ "asynchronous-codec", "bytes 1.1.0", @@ -3245,20 +3226,20 @@ dependencies = [ "libp2p-swarm", "log 0.4.14", "pin-project 1.0.8", - "prost 0.7.0", - "prost-build 0.7.0", + "prost 0.8.0", + "prost-build 0.8.0", "rand 0.7.3", "smallvec 1.7.0", - "unsigned-varint 0.7.1", + "unsigned-varint", "void", "wasm-timer", ] [[package]] name = "libp2p-request-response" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cdbe172f08e6d0f95fa8634e273d4c4268c4063de2e33e7435194b0130c62e3" +checksum = "06cdae44b6821466123af93cbcdec7c9e6ba9534a8af9cdc296446d39416d241" dependencies = [ "async-trait", "bytes 1.1.0", @@ -3270,15 +3251,15 @@ dependencies = [ "minicbor", "rand 0.7.3", "smallvec 1.7.0", - "unsigned-varint 0.7.1", + "unsigned-varint", "wasm-timer", ] [[package]] name = "libp2p-swarm" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e04d8e1eef675029ec728ba14e8d0da7975d84b6679b699b4ae91a1de9c3a92" +checksum = "7083861341e1555467863b4cd802bea1e8c4787c0f7b5110097d0f1f3248f9a9" dependencies = [ "either", "futures 0.3.19", @@ -3292,9 +3273,9 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" -version = "0.23.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "365b0a699fea5168676840567582a012ea297b1ca02eee467e58301b9c9c5eed" +checksum = "ab8cb308d4fc854869f5abb54fdab0833d2cf670d407c745849dc47e6e08d79c" dependencies = [ "quote", "syn", @@ -3302,9 +3283,9 @@ dependencies = [ [[package]] name = "libp2p-tcp" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b1a27d21c477951799e99d5c105d78868258502ce092988040a808d5a19bbd9" +checksum = "79edd26b6b4bb5feee210dcda562dca186940dfecb0024b979c3f50824b3bf28" dependencies = [ "async-io", "futures 0.3.19", @@ -3319,9 +3300,9 @@ dependencies = [ [[package]] name = "libp2p-uds" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffd6564bb3b7ff203661ccbb69003c2b551e34cef974f2d6c6a28306a12170b5" +checksum = "280e793440dd4e9f273d714f4497325c72cddb0fe85a49f9a03c88f41dd20182" dependencies = [ "async-std", "futures 0.3.19", @@ -3331,9 +3312,9 @@ dependencies = [ [[package]] name = "libp2p-wasm-ext" -version = "0.28.2" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d413e4cf9b8e5dfbcd2a60d3dc5a3391308bdb463684093d4f67137b7113de" +checksum = "f553b7140fad3d7a76f50497b0ea591e26737d9607428a75509fc191e4d1b1f6" dependencies = [ "futures 0.3.19", "js-sys", @@ -3345,9 +3326,9 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cace60995ef6f637e4752cccbb2590f6bc358e8741a0d066307636c69a4b3a74" +checksum = "ddf99dcbf5063e9d59087f61b1e85c686ceab2f5abedb472d32288065c0e5e27" dependencies = [ "either", "futures 0.3.19", @@ -3363,9 +3344,9 @@ dependencies = [ [[package]] name = "libp2p-yamux" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f35da42cfc6d5cb0dcf3ad6881bc68d146cdf38f98655e09e33fbba4d13eabc4" +checksum = "214cc0dd9c37cbed27f0bb1eba0c41bbafdb93a8be5e9d6ae1e6b4b42cd044bf" dependencies = [ "futures 0.3.19", "libp2p-core", @@ -3388,20 +3369,52 @@ dependencies = [ [[package]] name = "libsecp256k1" -version = "0.3.5" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc1e2c808481a63dc6da2074752fdd4336a3c8fcc68b83db6f1fd5224ae7962" +checksum = "bd1137239ab33b41aa9637a88a28249e5e70c40a42ccc92db7f12cc356c1fcd7" dependencies = [ "arrayref", - "crunchy", - "digest 0.8.1", + "base64 0.12.3", + "digest 0.9.0", "hmac-drbg", + "libsecp256k1-core", + "libsecp256k1-gen-ecmult", + "libsecp256k1-gen-genmult", "rand 0.7.3", - "sha2 0.8.2", - "subtle 2.4.1", + "serde 1.0.132", + "sha2", "typenum", ] +[[package]] +name = "libsecp256k1-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +dependencies = [ + "libsecp256k1-core", +] + [[package]] name = "libz-sys" version = "1.1.3" @@ -3714,17 +3727,35 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" +[[package]] +name = "multiaddr" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48ee4ea82141951ac6379f964f71b20876d43712bea8faf6dd1a375e08a46499" +dependencies = [ + "arrayref", + "bs58", + "byteorder", + "data-encoding", + "multihash", + "percent-encoding 2.1.0", + "serde 1.0.132", + "static_assertions", + "unsigned-varint", + "url 2.2.2", +] + [[package]] name = "multihash" -version = "0.13.2" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dac63698b887d2d929306ea48b63760431ff8a24fac40ddb22f9c7f49fb7cab" +checksum = "752a61cd890ff691b4411423d23816d5866dd5621e4d1c5687a53b94b5a979d8" dependencies = [ "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", - "sha2 0.9.8", - "unsigned-varint 0.5.1", + "sha2", + "unsigned-varint", ] [[package]] @@ -3758,7 +3789,7 @@ dependencies = [ "log 0.4.14", "pin-project 1.0.8", "smallvec 1.7.0", - "unsigned-varint 0.7.1", + "unsigned-varint", ] [[package]] @@ -4047,7 +4078,7 @@ checksum = "c6624905ddd92e460ff0685567539ed1ac985b2dee4c92c7edcd64fce905b00c" dependencies = [ "ct-codecs", "getrandom 0.2.3", - "subtle 2.4.1", + "subtle", "zeroize", ] @@ -4072,24 +4103,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2386b4ebe91c2f7f51082d4cefa145d030e33a1842a96b12e4885cc3c01f7a55" -[[package]] -name = "parity-multiaddr" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58341485071825827b7f03cf7efd1cb21e6a709bea778fb50227fd45d2f361b4" -dependencies = [ - "arrayref", - "bs58", - "byteorder", - "data-encoding", - "multihash", - "percent-encoding 2.1.0", - "serde 1.0.132", - "static_assertions", - "unsigned-varint 0.7.1", - "url 2.2.2", -] - [[package]] name = "parity-send-wrapper" version = "0.1.0" @@ -4354,7 +4367,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95e5a7689e456ab905c22c2b48225bb921aba7c8dfa58440d68ba13f6222a715" dependencies = [ "difflib", - "itertools 0.10.3", + "itertools", "predicates-core", ] @@ -4479,12 +4492,12 @@ dependencies = [ [[package]] name = "prost" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2" +checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020" dependencies = [ "bytes 1.1.0", - "prost-derive 0.7.0", + "prost-derive 0.8.0", ] [[package]] @@ -4499,18 +4512,18 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" +checksum = "355f634b43cdd80724ee7848f95770e7e70eefa6dcf14fea676216573b8fd603" dependencies = [ "bytes 1.1.0", "heck", - "itertools 0.9.0", + "itertools", "log 0.4.14", "multimap", "petgraph 0.5.1", - "prost 0.7.0", - "prost-types 0.7.0", + "prost 0.8.0", + "prost-types 0.8.0", "tempfile", "which", ] @@ -4523,7 +4536,7 @@ checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5" dependencies = [ "bytes 1.1.0", "heck", - "itertools 0.10.3", + "itertools", "lazy_static 1.4.0", "log 0.4.14", "multimap", @@ -4537,12 +4550,12 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" +checksum = "600d2f334aa05acb02a755e217ef1ab6dea4d51b58b7846588b747edec04efba" dependencies = [ "anyhow", - "itertools 0.9.0", + "itertools", "proc-macro2", "quote", "syn", @@ -4555,7 +4568,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe" dependencies = [ "anyhow", - "itertools 0.10.3", + "itertools", "proc-macro2", "quote", "syn", @@ -4563,12 +4576,12 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bb" +checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b" dependencies = [ "bytes 1.1.0", - "prost 0.7.0", + "prost 0.8.0", ] [[package]] @@ -5434,18 +5447,6 @@ dependencies = [ "opaque-debug 0.3.0", ] -[[package]] -name = "sha2" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", -] - [[package]] name = "sha2" version = "0.9.8" @@ -5557,8 +5558,8 @@ dependencies = [ "rand_core 0.6.3", "ring", "rustc_version 0.3.3", - "sha2 0.9.8", - "subtle 2.4.1", + "sha2", + "subtle", "x25519-dalek", ] @@ -5614,7 +5615,7 @@ dependencies = [ "borsh", "cfg-if 1.0.0", "ics23", - "sha2 0.9.8", + "sha2", ] [[package]] @@ -5671,12 +5672,6 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" -[[package]] -name = "subtle" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" - [[package]] name = "subtle" version = "2.4.1" @@ -5780,9 +5775,9 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", - "sha2 0.9.8", + "sha2", "signature", - "subtle 2.4.1", + "subtle", "subtle-encoding", "tendermint-proto 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", "zeroize", @@ -5808,9 +5803,9 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", - "sha2 0.9.8", + "sha2", "signature", - "subtle 2.4.1", + "subtle", "subtle-encoding", "tendermint-proto 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", "zeroize", @@ -6735,7 +6730,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" dependencies = [ "generic-array 0.14.4", - "subtle 2.4.1", + "subtle", ] [[package]] @@ -6747,12 +6742,6 @@ dependencies = [ "void", ] -[[package]] -name = "unsigned-varint" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35" - [[package]] name = "unsigned-varint" version = "0.7.1" diff --git a/apps/Cargo.toml b/apps/Cargo.toml index fe16591b3b..b31ca85337 100644 --- a/apps/Cargo.toml +++ b/apps/Cargo.toml @@ -93,7 +93,7 @@ itertools = "0.10.1" jsonpath_lib = "0.3.0" libc = "0.2.97" libloading = "0.7.2" -libp2p = "0.38.0" +libp2p = "0.39.0" num-derive = "0.3.3" num-traits = "0.2.14" num_cpus = "1.13.0" diff --git a/apps/src/lib/node/gossip/behaviour/discovery.rs b/apps/src/lib/node/gossip/behaviour/discovery.rs index c3ec54d61d..97b0824835 100644 --- a/apps/src/lib/node/gossip/behaviour/discovery.rs +++ b/apps/src/lib/node/gossip/behaviour/discovery.rs @@ -500,6 +500,7 @@ impl NetworkBehaviour for DiscoveryBehaviour { }, ); } + NetworkBehaviourAction::CloseConnection { .. } => {} } } Poll::Pending diff --git a/apps/src/lib/node/gossip/mod.rs b/apps/src/lib/node/gossip/mod.rs index 1bfce00957..bafd3300fc 100644 --- a/apps/src/lib/node/gossip/mod.rs +++ b/apps/src/lib/node/gossip/mod.rs @@ -9,6 +9,7 @@ use std::rc::Rc; use anoma::types::address::Address; use anoma::types::key::ed25519::Keypair; +use futures::StreamExt; use thiserror::Error; use tokio::sync::mpsc; diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 254b6ffa0d..f5aa0f2166 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -57,7 +57,7 @@ color-eyre = "0.5.11" escargot = "0.5.2" eyre = "0.6.5" itertools = "0.10.0" -libp2p = "0.38.0" +libp2p = "0.39.0" pretty_assertions = "0.7.2" rexpect = {git = "https://github.com/heliaxdev/rexpect.git", branch = "tomas/eof-hack-fix"} From 08f050a7dfb11539157529cf31925b61a6aa2879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Tue, 28 Dec 2021 18:07:35 +0100 Subject: [PATCH 2/7] gossip: update libp2p to 0.40.0 --- Cargo.lock | 398 +++++++++--------- apps/Cargo.toml | 2 +- .../lib/node/gossip/behaviour/discovery.rs | 70 +-- apps/src/lib/node/gossip/behaviour/mod.rs | 5 +- tests/Cargo.toml | 2 +- 5 files changed, 253 insertions(+), 224 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c96effb2de..c20bb59db8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,8 +104,8 @@ dependencies = [ "parity-wasm", "pretty_assertions", "proptest 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "pwasm-utils", "rand 0.7.3", "rand 0.8.4", @@ -169,8 +169,8 @@ dependencies = [ "once_cell", "orion", "proptest 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "rand 0.7.3", "rand_core 0.5.1", "rayon", @@ -724,12 +724,6 @@ dependencies = [ "byteorder", ] -[[package]] -name = "base64" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" - [[package]] name = "base64" version = "0.13.0" @@ -742,6 +736,12 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf9ff0bbfd639f15c74af777d81383cf53efb7c93613f6cab67c6c11e05bbf8b" +[[package]] +name = "bimap" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50ae17cabbc8a38a1e3e4c1a6a664e9a09672dc14d0896fa8d865d3a5a446b07" + [[package]] name = "bincode" version = "1.3.3" @@ -988,12 +988,6 @@ dependencies = [ "iovec", ] -[[package]] -name = "bytes" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" - [[package]] name = "bytes" version = "1.1.0" @@ -1672,6 +1666,12 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" +[[package]] +name = "dtoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" + [[package]] name = "dynasm" version = "1.2.1" @@ -2545,8 +2545,8 @@ dependencies = [ "flex-error", "ibc-proto 0.12.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/abcipp-v0.23.0)", "ics23", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "safe-regex", "serde 1.0.132", "serde_derive", @@ -2572,8 +2572,8 @@ dependencies = [ "flex-error", "ibc-proto 0.12.0 (git+https://github.com/heliaxdev/ibc-rs?branch=yuji/rebase_v0.23.0)", "ics23", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "safe-regex", "serde 1.0.132", "serde_derive", @@ -2595,8 +2595,8 @@ source = "git+https://github.com/heliaxdev/ibc-rs?branch=yuji/abcipp-v0.23.0#d83 dependencies = [ "bytes 1.1.0", "getrandom 0.2.3", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "tendermint-proto 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", "tonic", ] @@ -2608,8 +2608,8 @@ source = "git+https://github.com/heliaxdev/ibc-rs?branch=yuji/rebase_v0.23.0#a6e dependencies = [ "bytes 1.1.0", "getrandom 0.2.3", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "tendermint-proto 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", "tonic", ] @@ -2623,7 +2623,7 @@ dependencies = [ "anyhow", "bytes 1.1.0", "hex", - "prost 0.9.0", + "prost", "ripemd160", "sha2", "sha3", @@ -2923,9 +2923,9 @@ dependencies = [ [[package]] name = "libp2p" -version = "0.39.1" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9004c06878ef8f3b4b4067e69a140d87ed20bf777287f82223e49713b36ee433" +checksum = "3bec54343492ba5940a6c555e512c6721139835d28c59bc22febece72dfd0d9d" dependencies = [ "atomic", "bytes 1.1.0", @@ -2939,12 +2939,14 @@ dependencies = [ "libp2p-identify", "libp2p-kad", "libp2p-mdns", + "libp2p-metrics", "libp2p-mplex", "libp2p-noise", "libp2p-ping", "libp2p-plaintext", "libp2p-pnet", "libp2p-relay", + "libp2p-rendezvous", "libp2p-request-response", "libp2p-swarm", "libp2p-swarm-derive", @@ -2962,9 +2964,9 @@ dependencies = [ [[package]] name = "libp2p-core" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af9b4abdeaa420593a297c8592f63fad4234f4b88dc9343b8fd8e736c35faa59" +checksum = "bef22d9bba1e8bcb7ec300073e6802943fe8abb8190431842262b5f1c30abba1" dependencies = [ "asn1_der", "bs58", @@ -2981,9 +2983,9 @@ dependencies = [ "multistream-select", "parking_lot 0.11.2", "pin-project 1.0.8", - "prost 0.8.0", - "prost-build 0.8.0", - "rand 0.7.3", + "prost", + "prost-build", + "rand 0.8.4", "ring", "rw-stream-sink", "sha2", @@ -2996,9 +2998,9 @@ dependencies = [ [[package]] name = "libp2p-deflate" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66097fccc0b7f8579f90a03ea76ba6196332ea049fd07fd969490a06819dcdc8" +checksum = "51a800adb195f33de63f4b17b63fe64cfc23bf2c6a0d3d0d5321328664e65197" dependencies = [ "flate2", "futures 0.3.19", @@ -3007,9 +3009,9 @@ dependencies = [ [[package]] name = "libp2p-dns" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58ff08b3196b85a17f202d80589e93b1660a574af67275706657fdc762e42c32" +checksum = "bb8f89d15cb6e3c5bc22afff7513b11bab7856f2872d3cfba86f7f63a06bc498" dependencies = [ "async-std-resolver", "futures 0.3.19", @@ -3021,9 +3023,9 @@ dependencies = [ [[package]] name = "libp2p-floodsub" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "404eca8720967179dac7a5b4275eb91f904a53859c69ca8d018560ad6beb214f" +checksum = "aab3d7210901ea51b7bae2b581aa34521797af8c4ec738c980bda4a06434067f" dependencies = [ "cuckoofilter", "fnv", @@ -3031,17 +3033,17 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.8.0", - "prost-build 0.8.0", + "prost", + "prost-build", "rand 0.7.3", "smallvec 1.7.0", ] [[package]] name = "libp2p-gossipsub" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1cc48709bcbc3a3321f08a73560b4bbb4166a7d56f6fdb615bc775f4f91058e" +checksum = "dfeead619eb5dac46e65acc78c535a60aaec803d1428cca6407c3a4fc74d698d" dependencies = [ "asynchronous-codec", "base64 0.13.0", @@ -3053,8 +3055,8 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.8.0", - "prost-build 0.8.0", + "prost", + "prost-build", "rand 0.7.3", "regex", "sha2", @@ -3065,25 +3067,26 @@ dependencies = [ [[package]] name = "libp2p-identify" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7b61f6cf07664fb97016c318c4d4512b3dd4cc07238607f3f0163245f99008e" +checksum = "cca1275574183f288ff8b72d535d5ffa5ea9292ef7829af8b47dcb197c7b0dcd" dependencies = [ "futures 0.3.19", "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.8.0", - "prost-build 0.8.0", + "lru 0.6.6", + "prost", + "prost-build", "smallvec 1.7.0", "wasm-timer", ] [[package]] name = "libp2p-kad" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50ed78489c87924235665a0ab345b298ee34dff0f7ad62c0ba6608b2144fb75e" +checksum = "a2297dc0ca285f3a09d1368bde02449e539b46f94d32d53233f53f6625bcd3ba" dependencies = [ "arrayvec", "asynchronous-codec", @@ -3094,8 +3097,8 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log 0.4.14", - "prost 0.8.0", - "prost-build 0.8.0", + "prost", + "prost-build", "rand 0.7.3", "sha2", "smallvec 1.7.0", @@ -3107,9 +3110,9 @@ dependencies = [ [[package]] name = "libp2p-mdns" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a29e6cbc2a24b8471b6567e580a0e8e7b70a6d0f0ea2be0844d1e842d7d4fa33" +checksum = "14c864b64bdc8a84ff3910a0df88e6535f256191a450870f1e7e10cbf8e64d45" dependencies = [ "async-io", "data-encoding", @@ -3126,11 +3129,25 @@ dependencies = [ "void", ] +[[package]] +name = "libp2p-metrics" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4af432fcdd2f8ba4579b846489f8f0812cfd738ced2c0af39df9b1c48bbb6ab2" +dependencies = [ + "libp2p-core", + "libp2p-identify", + "libp2p-kad", + "libp2p-ping", + "libp2p-swarm", + "open-metrics-client", +] + [[package]] name = "libp2p-mplex" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "313d9ea526c68df4425f580024e67a9d3ffd49f2c33de5154b1f5019816f7a99" +checksum = "7f2cd64ef597f40e14bfce0497f50ecb63dd6d201c61796daeb4227078834fbf" dependencies = [ "asynchronous-codec", "bytes 1.1.0", @@ -3146,9 +3163,9 @@ dependencies = [ [[package]] name = "libp2p-noise" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f1db7212f342b6ba7c981cc40e31f76e9e56cb48e65fa4c142ecaca5839523e" +checksum = "a8772c7a99088221bb7ca9c5c0574bf55046a7ab4c319f3619b275f28c8fb87a" dependencies = [ "bytes 1.1.0", "curve25519-dalek", @@ -3156,8 +3173,8 @@ dependencies = [ "lazy_static 1.4.0", "libp2p-core", "log 0.4.14", - "prost 0.8.0", - "prost-build 0.8.0", + "prost", + "prost-build", "rand 0.8.4", "sha2", "snow", @@ -3168,9 +3185,9 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2482cfd9eb0b7a0baaf3e7b329dc4f2785181a161b1a47b7192f8d758f54a439" +checksum = "80ef7b0ec5cf06530d9eb6cf59ae49d46a2c45663bde31c25a12f682664adbcf" dependencies = [ "futures 0.3.19", "libp2p-core", @@ -3183,26 +3200,26 @@ dependencies = [ [[package]] name = "libp2p-plaintext" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13b4783e5423870b9a5c199f65a7a3bc66d86ab56b2b9beebf3c338d889cf8e4" +checksum = "5fba1a6ff33e4a274c89a3b1d78b9f34f32af13265cc5c46c16938262d4e945a" dependencies = [ "asynchronous-codec", "bytes 1.1.0", "futures 0.3.19", "libp2p-core", "log 0.4.14", - "prost 0.8.0", - "prost-build 0.8.0", + "prost", + "prost-build", "unsigned-varint", "void", ] [[package]] name = "libp2p-pnet" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07cb4dd4b917e5b40ddefe49b96b07adcd8d342e0317011d175b7b2bb1dcc974" +checksum = "0f1a458bbda880107b5b36fcb9b5a1ef0c329685da0e203ed692a8ebe64cc92c" dependencies = [ "futures 0.3.19", "log 0.4.14", @@ -3214,9 +3231,9 @@ dependencies = [ [[package]] name = "libp2p-relay" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0133f6cfd81cdc16e716de2982e012c62e6b9d4f12e41967b3ee361051c622aa" +checksum = "2852b61c90fa8ce3c8fcc2aba76e6cefc20d648f9df29157d6b3a916278ef3e3" dependencies = [ "asynchronous-codec", "bytes 1.1.0", @@ -3226,8 +3243,8 @@ dependencies = [ "libp2p-swarm", "log 0.4.14", "pin-project 1.0.8", - "prost 0.8.0", - "prost-build 0.8.0", + "prost", + "prost-build", "rand 0.7.3", "smallvec 1.7.0", "unsigned-varint", @@ -3235,11 +3252,33 @@ dependencies = [ "wasm-timer", ] +[[package]] +name = "libp2p-rendezvous" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14a6d2b9e7677eff61dc3d2854876aaf3976d84a01ef6664b610c77a0c9407c5" +dependencies = [ + "asynchronous-codec", + "bimap", + "futures 0.3.19", + "libp2p-core", + "libp2p-swarm", + "log 0.4.14", + "prost", + "prost-build", + "rand 0.8.4", + "sha2", + "thiserror", + "unsigned-varint", + "void", + "wasm-timer", +] + [[package]] name = "libp2p-request-response" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06cdae44b6821466123af93cbcdec7c9e6ba9534a8af9cdc296446d39416d241" +checksum = "a877a4ced6d46bf84677e1974e8cf61fb434af73b2e96fb48d6cb6223a4634d8" dependencies = [ "async-trait", "bytes 1.1.0", @@ -3247,8 +3286,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log 0.4.14", - "lru", - "minicbor", + "lru 0.7.1", "rand 0.7.3", "smallvec 1.7.0", "unsigned-varint", @@ -3257,9 +3295,9 @@ dependencies = [ [[package]] name = "libp2p-swarm" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7083861341e1555467863b4cd802bea1e8c4787c0f7b5110097d0f1f3248f9a9" +checksum = "3f5184a508f223bc100a12665517773fb8730e9f36fc09eefb670bf01b107ae9" dependencies = [ "either", "futures 0.3.19", @@ -3273,9 +3311,9 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" -version = "0.24.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab8cb308d4fc854869f5abb54fdab0833d2cf670d407c745849dc47e6e08d79c" +checksum = "072c290f727d39bdc4e9d6d1c847978693d25a673bd757813681e33e5f6c00c2" dependencies = [ "quote", "syn", @@ -3283,9 +3321,9 @@ dependencies = [ [[package]] name = "libp2p-tcp" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79edd26b6b4bb5feee210dcda562dca186940dfecb0024b979c3f50824b3bf28" +checksum = "7399c5b6361ef525d41c11fcf51635724f832baf5819b30d3d873eabb4fbae4b" dependencies = [ "async-io", "futures 0.3.19", @@ -3300,9 +3338,9 @@ dependencies = [ [[package]] name = "libp2p-uds" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "280e793440dd4e9f273d714f4497325c72cddb0fe85a49f9a03c88f41dd20182" +checksum = "b8b7563e46218165dfd60f64b96f7ce84590d75f53ecbdc74a7dd01450dc5973" dependencies = [ "async-std", "futures 0.3.19", @@ -3312,9 +3350,9 @@ dependencies = [ [[package]] name = "libp2p-wasm-ext" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f553b7140fad3d7a76f50497b0ea591e26737d9607428a75509fc191e4d1b1f6" +checksum = "1008a302b73c5020251f9708c653f5ed08368e530e247cc9cd2f109ff30042cf" dependencies = [ "futures 0.3.19", "js-sys", @@ -3326,9 +3364,9 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddf99dcbf5063e9d59087f61b1e85c686ceab2f5abedb472d32288065c0e5e27" +checksum = "22e12df82d1ed64969371a9e65ea92b91064658604cc2576c2757f18ead9a1cf" dependencies = [ "either", "futures 0.3.19", @@ -3344,9 +3382,9 @@ dependencies = [ [[package]] name = "libp2p-yamux" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "214cc0dd9c37cbed27f0bb1eba0c41bbafdb93a8be5e9d6ae1e6b4b42cd044bf" +checksum = "4e7362abb8867d7187e7e93df17f460d554c997fc5c8ac57dc1259057f6889af" dependencies = [ "futures 0.3.19", "libp2p-core", @@ -3369,18 +3407,18 @@ dependencies = [ [[package]] name = "libsecp256k1" -version = "0.5.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd1137239ab33b41aa9637a88a28249e5e70c40a42ccc92db7f12cc356c1fcd7" +checksum = "b0452aac8bab02242429380e9b2f94ea20cea2b37e2c1777a1358799bbe97f37" dependencies = [ "arrayref", - "base64 0.12.3", + "base64 0.13.0", "digest 0.9.0", "hmac-drbg", "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand 0.7.3", + "rand 0.8.4", "serde 1.0.132", "sha2", "typenum", @@ -3388,9 +3426,9 @@ dependencies = [ [[package]] name = "libsecp256k1-core" -version = "0.2.2" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" dependencies = [ "crunchy", "digest 0.9.0", @@ -3399,18 +3437,18 @@ dependencies = [ [[package]] name = "libsecp256k1-gen-ecmult" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +checksum = "3038c808c55c87e8a172643a7d87187fc6c4174468159cb3090659d55bcb4809" dependencies = [ "libsecp256k1-core", ] [[package]] name = "libsecp256k1-gen-genmult" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +checksum = "3db8d6ba2cec9eacc40e6e8ccc98931840301f1006e95647ceb2dd5c3aa06f7c" dependencies = [ "libsecp256k1-core", ] @@ -3478,6 +3516,15 @@ dependencies = [ "hashbrown 0.11.2", ] +[[package]] +name = "lru" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469898e909a1774d844793b347135a0cd344ca2f69d082013ecb8061a2229a3a" +dependencies = [ + "hashbrown 0.11.2", +] + [[package]] name = "lru-cache" version = "0.1.2" @@ -3580,26 +3627,6 @@ version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" -[[package]] -name = "minicbor" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51aa5bb0ca22415daca596a227b507f880ad1b2318a87fa9325312a5d285ca0d" -dependencies = [ - "minicbor-derive", -] - -[[package]] -name = "minicbor-derive" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54999f917cd092b13904737e26631aa2b2b88d625db68e4bab461dcd8006c788" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "minilp" version = "0.2.2" @@ -4037,6 +4064,29 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" +[[package]] +name = "open-metrics-client" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7337d80c23c2d8b1349563981bc4fb531220733743ba8115454a67b181173f0d" +dependencies = [ + "dtoa", + "itoa 0.4.8", + "open-metrics-client-derive-text-encode", + "owning_ref", +] + +[[package]] +name = "open-metrics-client-derive-text-encode" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a15c83b586f00268c619c1cb3340ec1a6f59dd9ba1d9833a273a68e6d5cd8ffc" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "openssl" version = "0.10.38" @@ -4097,6 +4147,15 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "owning_ref" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ff55baddef9e4ad00f88b6c743a2a8062d4c6ade126c2a528644b8e444d52ce" +dependencies = [ + "stable_deref_trait", +] + [[package]] name = "owo-colors" version = "1.3.0" @@ -4490,16 +4549,6 @@ dependencies = [ "tempfile", ] -[[package]] -name = "prost" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020" -dependencies = [ - "bytes 1.1.0", - "prost-derive 0.8.0", -] - [[package]] name = "prost" version = "0.9.0" @@ -4507,25 +4556,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001" dependencies = [ "bytes 1.1.0", - "prost-derive 0.9.0", -] - -[[package]] -name = "prost-build" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "355f634b43cdd80724ee7848f95770e7e70eefa6dcf14fea676216573b8fd603" -dependencies = [ - "bytes 1.1.0", - "heck", - "itertools", - "log 0.4.14", - "multimap", - "petgraph 0.5.1", - "prost 0.8.0", - "prost-types 0.8.0", - "tempfile", - "which", + "prost-derive", ] [[package]] @@ -4541,26 +4572,13 @@ dependencies = [ "log 0.4.14", "multimap", "petgraph 0.6.0", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "regex", "tempfile", "which", ] -[[package]] -name = "prost-derive" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "600d2f334aa05acb02a755e217ef1ab6dea4d51b58b7846588b747edec04efba" -dependencies = [ - "anyhow", - "itertools", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "prost-derive" version = "0.9.0" @@ -4574,16 +4592,6 @@ dependencies = [ "syn", ] -[[package]] -name = "prost-types" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b" -dependencies = [ - "bytes 1.1.0", - "prost 0.8.0", -] - [[package]] name = "prost-types" version = "0.9.0" @@ -4591,7 +4599,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a" dependencies = [ "bytes 1.1.0", - "prost 0.9.0", + "prost", ] [[package]] @@ -5222,9 +5230,9 @@ checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" [[package]] name = "salsa20" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecbd2eb639fd7cab5804a0837fe373cc2172d15437e804c054a9fb885cb923b0" +checksum = "0c0fbb5f676da676c260ba276a8f43a8dc67cf02d1438423aeb1c677a7212686" dependencies = [ "cipher", ] @@ -5586,17 +5594,17 @@ dependencies = [ [[package]] name = "soketto" -version = "0.4.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5c71ed3d54db0a699f4948e1bb3e45b450fa31fe602621dee6680361d569c88" +checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" dependencies = [ - "base64 0.12.3", - "bytes 0.5.6", + "base64 0.13.0", + "bytes 1.1.0", "flate2", "futures 0.3.19", "httparse", "log 0.4.14", - "rand 0.7.3", + "rand 0.8.4", "sha-1 0.9.8", ] @@ -5769,8 +5777,8 @@ dependencies = [ "futures 0.3.19", "num-traits 0.2.14", "once_cell", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "serde 1.0.132", "serde_bytes", "serde_json", @@ -5797,8 +5805,8 @@ dependencies = [ "futures 0.3.19", "num-traits 0.2.14", "once_cell", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "serde 1.0.132", "serde_bytes", "serde_json", @@ -5885,8 +5893,8 @@ dependencies = [ "flex-error", "num-derive", "num-traits 0.2.14", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "serde 1.0.132", "serde_bytes", "subtle-encoding", @@ -5902,8 +5910,8 @@ dependencies = [ "flex-error", "num-derive", "num-traits 0.2.14", - "prost 0.9.0", - "prost-types 0.9.0", + "prost", + "prost-types", "serde 1.0.132", "serde_bytes", "subtle-encoding", @@ -6350,8 +6358,8 @@ dependencies = [ "hyper-timeout", "percent-encoding 2.1.0", "pin-project 1.0.8", - "prost 0.9.0", - "prost-derive 0.9.0", + "prost", + "prost-derive", "tokio", "tokio-stream", "tokio-util", @@ -6369,7 +6377,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9403f1bafde247186684b230dc6f38b5cd514584e8bec1dd32514be4745fa757" dependencies = [ "proc-macro2", - "prost-build 0.9.0", + "prost-build", "quote", "syn", ] @@ -6404,7 +6412,7 @@ dependencies = [ "bytes 1.1.0", "futures 0.3.19", "pin-project 1.0.8", - "prost 0.9.0", + "prost", "tendermint-proto 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", "tokio", "tokio-stream", @@ -6422,7 +6430,7 @@ dependencies = [ "bytes 1.1.0", "futures 0.3.19", "pin-project 1.0.8", - "prost 0.9.0", + "prost", "tendermint-proto 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", "tokio", "tokio-stream", diff --git a/apps/Cargo.toml b/apps/Cargo.toml index b31ca85337..4a54503eac 100644 --- a/apps/Cargo.toml +++ b/apps/Cargo.toml @@ -93,7 +93,7 @@ itertools = "0.10.1" jsonpath_lib = "0.3.0" libc = "0.2.97" libloading = "0.7.2" -libp2p = "0.39.0" +libp2p = "0.40.0" num-derive = "0.3.3" num-traits = "0.2.14" num_cpus = "1.13.0" diff --git a/apps/src/lib/node/gossip/behaviour/discovery.rs b/apps/src/lib/node/gossip/behaviour/discovery.rs index 97b0824835..58b33204eb 100644 --- a/apps/src/lib/node/gossip/behaviour/discovery.rs +++ b/apps/src/lib/node/gossip/behaviour/discovery.rs @@ -20,7 +20,7 @@ use libp2p::kad::{Kademlia, KademliaConfig, KademliaEvent, QueryId}; use libp2p::mdns::{Mdns, MdnsConfig, MdnsEvent}; use libp2p::swarm::toggle::{Toggle, ToggleIntoProtoHandler}; use libp2p::swarm::{ - IntoProtocolsHandler, NetworkBehaviour, NetworkBehaviourAction, + DialError, IntoProtocolsHandler, NetworkBehaviour, NetworkBehaviourAction, PollParameters, ProtocolsHandler, }; use libp2p::{Multiaddr, PeerId}; @@ -316,11 +316,16 @@ impl NetworkBehaviour for DiscoveryBehaviour { peer_id: &PeerId, conn: &ConnectionId, endpoint: &ConnectedPoint, + failed_addresses: Option<&Vec>, ) { self.num_connections += 1; - self.kademlia - .inject_connection_established(peer_id, conn, endpoint) + self.kademlia.inject_connection_established( + peer_id, + conn, + endpoint, + failed_addresses, + ) } fn inject_connection_closed( @@ -328,11 +333,12 @@ impl NetworkBehaviour for DiscoveryBehaviour { peer_id: &PeerId, conn: &ConnectionId, endpoint: &ConnectedPoint, + handler: ::Handler, ) { self.num_connections -= 1; self.kademlia - .inject_connection_closed(peer_id, conn, endpoint) + .inject_connection_closed(peer_id, conn, endpoint, handler) } fn inject_address_change( @@ -354,18 +360,13 @@ impl NetworkBehaviour for DiscoveryBehaviour { self.kademlia.inject_event(peer_id, connection, event) } - fn inject_addr_reach_failure( + fn inject_dial_failure( &mut self, - peer_id: Option<&PeerId>, - addr: &Multiaddr, - error: &dyn std::error::Error, + peer_id: Option, + handler: Self::ProtocolsHandler, + error: &DialError, ) { - self.kademlia - .inject_addr_reach_failure(peer_id, addr, error) - } - - fn inject_dial_failure(&mut self, peer_id: &PeerId) { - self.kademlia.inject_dial_failure(peer_id) + self.kademlia.inject_dial_failure(peer_id, handler, error) } fn inject_new_listen_addr(&mut self, id: ListenerId, addr: &Multiaddr) { @@ -400,15 +401,11 @@ impl NetworkBehaviour for DiscoveryBehaviour { // in the local queue then in kademlia and lastly in Mdns. #[allow(clippy::type_complexity)] fn poll( - &mut self, - cx: &mut Context, - params: &mut impl PollParameters, - ) -> Poll< - NetworkBehaviourAction< - <::Handler as ProtocolsHandler>::InEvent, - Self::OutEvent, - >, - >{ + &mut self, + cx: &mut Context, + params: &mut impl PollParameters, + ) -> Poll> + { // Immediately process the content of `discovered`. if let Some(ev) = self.pending_events.pop_front() { return Poll::Ready(NetworkBehaviourAction::GenerateEvent(ev)); @@ -476,15 +473,26 @@ impl NetworkBehaviour for DiscoveryBehaviour { } MdnsEvent::Expired(_) => {} }, - NetworkBehaviourAction::DialAddress { address } => { + NetworkBehaviourAction::DialAddress { + address, + handler: _, + } => { + let handler = self.new_handler(); return Poll::Ready(NetworkBehaviourAction::DialAddress { address, + handler, }); } - NetworkBehaviourAction::DialPeer { peer_id, condition } => { + NetworkBehaviourAction::DialPeer { + peer_id, + condition, + handler: _, + } => { + let handler = self.new_handler(); return Poll::Ready(NetworkBehaviourAction::DialPeer { peer_id, condition, + handler, }); } // Nothing to notify handler @@ -500,7 +508,17 @@ impl NetworkBehaviour for DiscoveryBehaviour { }, ); } - NetworkBehaviourAction::CloseConnection { .. } => {} + NetworkBehaviourAction::CloseConnection { + peer_id, + connection, + } => { + return Poll::Ready( + NetworkBehaviourAction::CloseConnection { + peer_id, + connection, + }, + ); + } } } Poll::Pending diff --git a/apps/src/lib/node/gossip/behaviour/mod.rs b/apps/src/lib/node/gossip/behaviour/mod.rs index 8397750e6c..40c3de38d2 100644 --- a/apps/src/lib/node/gossip/behaviour/mod.rs +++ b/apps/src/lib/node/gossip/behaviour/mod.rs @@ -128,6 +128,8 @@ impl TopicSubscriptionFilter for IntentGossipSubscriptionFilter { /// It automatically connect to newly discovered peer, except specified /// otherwise, and propagates intents to other peers. #[derive(NetworkBehaviour)] +// Events are delegated to the `NetworkBehaviourEventProcess` impl +#[behaviour(event_process = true)] pub struct Behaviour { pub intent_gossip_behaviour: Gossipsub, pub discover_behaviour: DiscoveryBehaviour, @@ -149,7 +151,7 @@ impl Behaviour { config: &crate::config::IntentGossiper, mm_sender: Option>, ) -> Self { - let peer_id = PeerId::from_public_key(key.public()); + let peer_id = PeerId::from_public_key(&key.public()); // TODO remove hardcoded value and add them to the config Except // validation_mode, protocol_id_prefix, message_id_fn and @@ -332,6 +334,7 @@ impl NetworkBehaviourEventProcess for Behaviour { peer_id: _, topic: _, } => {} + GossipsubEvent::GossipsubNotSupported { .. } => {} } } } diff --git a/tests/Cargo.toml b/tests/Cargo.toml index f5aa0f2166..b9316d3b9e 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -57,7 +57,7 @@ color-eyre = "0.5.11" escargot = "0.5.2" eyre = "0.6.5" itertools = "0.10.0" -libp2p = "0.39.0" +libp2p = "0.40.0" pretty_assertions = "0.7.2" rexpect = {git = "https://github.com/heliaxdev/rexpect.git", branch = "tomas/eof-hack-fix"} From c8092e4a753b098a4a9fb7d2eb55a45c86789b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Tue, 28 Dec 2021 18:19:39 +0100 Subject: [PATCH 3/7] gossip: update libp2p to 0.41.0 --- Cargo.lock | 173 +++++++++++------- apps/Cargo.toml | 2 +- .../lib/node/gossip/behaviour/discovery.rs | 21 +-- apps/src/lib/node/gossip/behaviour/mod.rs | 1 + tests/Cargo.toml | 2 +- 5 files changed, 111 insertions(+), 88 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c20bb59db8..a617ca55a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -636,7 +636,7 @@ dependencies = [ "tokio", "tokio-rustls", "tungstenite", - "webpki-roots", + "webpki-roots 0.21.1", ] [[package]] @@ -1439,7 +1439,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1a816186fa68d9e426e3cb4ae4dff1fcd8e4a2c34b781bf7a822574a0d0aac8" dependencies = [ - "sct", + "sct 0.6.1", ] [[package]] @@ -2052,13 +2052,13 @@ dependencies = [ [[package]] name = "futures-rustls" -version = "0.21.1" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a1387e07917c711fb4ee4f48ea0adb04a3c9739e53ef85bf43ae1edc2937a8b" +checksum = "d383f0425d991a05e564c2f3ec150bd6dde863179c131dd60d8aa73a05434461" dependencies = [ "futures-io", - "rustls", - "webpki", + "rustls 0.20.2", + "webpki 0.22.0", ] [[package]] @@ -2501,12 +2501,12 @@ dependencies = [ "futures-util", "hyper 0.14.16", "log 0.4.14", - "rustls", + "rustls 0.19.1", "rustls-native-certs", "tokio", "tokio-rustls", - "webpki", - "webpki-roots", + "webpki 0.21.4", + "webpki-roots 0.21.1", ] [[package]] @@ -2923,13 +2923,16 @@ dependencies = [ [[package]] name = "libp2p" -version = "0.40.0" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bec54343492ba5940a6c555e512c6721139835d28c59bc22febece72dfd0d9d" +checksum = "782229f90bf7d5b12ee3ee08f7e160ba99f0d75eee7d118d9c1a688b13f6e64a" dependencies = [ "atomic", "bytes 1.1.0", "futures 0.3.19", + "futures-timer", + "getrandom 0.2.3", + "instant", "lazy_static 1.4.0", "libp2p-core", "libp2p-deflate", @@ -2958,8 +2961,8 @@ dependencies = [ "multiaddr", "parking_lot 0.11.2", "pin-project 1.0.8", + "rand 0.7.3", "smallvec 1.7.0", - "wasm-timer", ] [[package]] @@ -3023,9 +3026,9 @@ dependencies = [ [[package]] name = "libp2p-floodsub" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aab3d7210901ea51b7bae2b581aa34521797af8c4ec738c980bda4a06434067f" +checksum = "709047c957360e8f2b3f7e987c0e272038e3003e0cdaf08b42668132ff910161" dependencies = [ "cuckoofilter", "fnv", @@ -3041,9 +3044,9 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfeead619eb5dac46e65acc78c535a60aaec803d1428cca6407c3a4fc74d698d" +checksum = "98942284cc1a91f24527a8b1e5bc06f7dd22fc6cee5be3d9bf5785bf902eb934" dependencies = [ "asynchronous-codec", "base64 0.13.0", @@ -3051,10 +3054,14 @@ dependencies = [ "bytes 1.1.0", "fnv", "futures 0.3.19", + "futures-timer", "hex_fmt", + "instant", "libp2p-core", "libp2p-swarm", "log 0.4.14", + "open-metrics-client", + "pin-project 1.0.8", "prost", "prost-build", "rand 0.7.3", @@ -3062,16 +3069,16 @@ dependencies = [ "sha2", "smallvec 1.7.0", "unsigned-varint", - "wasm-timer", ] [[package]] name = "libp2p-identify" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cca1275574183f288ff8b72d535d5ffa5ea9292ef7829af8b47dcb197c7b0dcd" +checksum = "ec6d59e3f88435a83797fc3734f18385f6f54e0fe081e12543573364687c7db5" dependencies = [ "futures 0.3.19", + "futures-timer", "libp2p-core", "libp2p-swarm", "log 0.4.14", @@ -3079,14 +3086,13 @@ dependencies = [ "prost", "prost-build", "smallvec 1.7.0", - "wasm-timer", ] [[package]] name = "libp2p-kad" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2297dc0ca285f3a09d1368bde02449e539b46f94d32d53233f53f6625bcd3ba" +checksum = "4fe4538a739911c178ec96398caa7d9eb3dc540f07613c819b38722a697eaccc" dependencies = [ "arrayvec", "asynchronous-codec", @@ -3094,6 +3100,8 @@ dependencies = [ "either", "fnv", "futures 0.3.19", + "futures-timer", + "instant", "libp2p-core", "libp2p-swarm", "log 0.4.14", @@ -3105,14 +3113,13 @@ dependencies = [ "uint", "unsigned-varint", "void", - "wasm-timer", ] [[package]] name = "libp2p-mdns" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c864b64bdc8a84ff3910a0df88e6535f256191a450870f1e7e10cbf8e64d45" +checksum = "13ea6cb29b2be3317a483f5687cdf4ea387e87331731e53c8a2c9feae7c97cac" dependencies = [ "async-io", "data-encoding", @@ -3131,11 +3138,12 @@ dependencies = [ [[package]] name = "libp2p-metrics" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4af432fcdd2f8ba4579b846489f8f0812cfd738ced2c0af39df9b1c48bbb6ab2" +checksum = "d59f3be49edeecff13ef0d0dc28295ba4a33910611715f04236325d08e4119e0" dependencies = [ "libp2p-core", + "libp2p-gossipsub", "libp2p-identify", "libp2p-kad", "libp2p-ping", @@ -3185,17 +3193,18 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80ef7b0ec5cf06530d9eb6cf59ae49d46a2c45663bde31c25a12f682664adbcf" +checksum = "d210cc0774142575a6a95f2c3590f9009cb838652cd295110a12a5d032ac07e0" dependencies = [ "futures 0.3.19", + "futures-timer", + "instant", "libp2p-core", "libp2p-swarm", "log 0.4.14", "rand 0.7.3", "void", - "wasm-timer", ] [[package]] @@ -3231,14 +3240,15 @@ dependencies = [ [[package]] name = "libp2p-relay" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2852b61c90fa8ce3c8fcc2aba76e6cefc20d648f9df29157d6b3a916278ef3e3" +checksum = "352001594ebc7538538c5439e6bf8348995ebf28b1b042d8193532e90bc77aee" dependencies = [ "asynchronous-codec", "bytes 1.1.0", "futures 0.3.19", "futures-timer", + "instant", "libp2p-core", "libp2p-swarm", "log 0.4.14", @@ -3249,18 +3259,19 @@ dependencies = [ "smallvec 1.7.0", "unsigned-varint", "void", - "wasm-timer", ] [[package]] name = "libp2p-rendezvous" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14a6d2b9e7677eff61dc3d2854876aaf3976d84a01ef6664b610c77a0c9407c5" +checksum = "921bc44c31225d42ac282e0e5a2f5311e4c50906a9e02d861fe8107a9396be49" dependencies = [ "asynchronous-codec", "bimap", "futures 0.3.19", + "futures-timer", + "instant", "libp2p-core", "libp2p-swarm", "log 0.4.14", @@ -3271,18 +3282,18 @@ dependencies = [ "thiserror", "unsigned-varint", "void", - "wasm-timer", ] [[package]] name = "libp2p-request-response" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a877a4ced6d46bf84677e1974e8cf61fb434af73b2e96fb48d6cb6223a4634d8" +checksum = "bdf24b2013a3e4543477786cccc0fee7a73052cf6d6005b3eb60b73d8b091657" dependencies = [ "async-trait", "bytes 1.1.0", "futures 0.3.19", + "instant", "libp2p-core", "libp2p-swarm", "log 0.4.14", @@ -3290,30 +3301,30 @@ dependencies = [ "rand 0.7.3", "smallvec 1.7.0", "unsigned-varint", - "wasm-timer", ] [[package]] name = "libp2p-swarm" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f5184a508f223bc100a12665517773fb8730e9f36fc09eefb670bf01b107ae9" +checksum = "cb84d40627cd109bbbf43da9269d4ef75903f42356c88d98b2b55c47c430c792" dependencies = [ "either", "futures 0.3.19", + "futures-timer", + "instant", "libp2p-core", "log 0.4.14", "rand 0.7.3", "smallvec 1.7.0", "void", - "wasm-timer", ] [[package]] name = "libp2p-swarm-derive" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "072c290f727d39bdc4e9d6d1c847978693d25a673bd757813681e33e5f6c00c2" +checksum = "7dd93a7dad9b61c39797572e4fb4fdba8415d6348b4e745b3d4cb008f84331ab" dependencies = [ "quote", "syn", @@ -3364,9 +3375,9 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e12df82d1ed64969371a9e65ea92b91064658604cc2576c2757f18ead9a1cf" +checksum = "fa92005fbd67695715c821e1acfe4d7be9fd2d88738574e93d645c49ec2831c8" dependencies = [ "either", "futures 0.3.19", @@ -3377,7 +3388,7 @@ dependencies = [ "rw-stream-sink", "soketto", "url 2.2.2", - "webpki-roots", + "webpki-roots 0.22.1", ] [[package]] @@ -5130,8 +5141,20 @@ dependencies = [ "base64 0.13.0", "log 0.4.14", "ring", - "sct", - "webpki", + "sct 0.6.1", + "webpki 0.21.4", +] + +[[package]] +name = "rustls" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d37e5e2290f3e040b594b1a9e04377c2c671f1a1cfd9bfdef82106ac1c113f84" +dependencies = [ + "log 0.4.14", + "ring", + "sct 0.7.0", + "webpki 0.22.0", ] [[package]] @@ -5141,7 +5164,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092" dependencies = [ "openssl-probe", - "rustls", + "rustls 0.19.1", "schannel", "security-framework", ] @@ -5272,6 +5295,16 @@ dependencies = [ "untrusted", ] +[[package]] +name = "sct" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "security-framework" version = "2.4.2" @@ -6252,9 +6285,9 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" dependencies = [ - "rustls", + "rustls 0.19.1", "tokio", - "webpki", + "webpki 0.21.4", ] [[package]] @@ -6983,21 +7016,6 @@ version = "0.2.78" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc" -[[package]] -name = "wasm-timer" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" -dependencies = [ - "futures 0.3.19", - "js-sys", - "parking_lot 0.11.2", - "pin-utils", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - [[package]] name = "wasmer" version = "1.0.2" @@ -7273,13 +7291,32 @@ dependencies = [ "untrusted", ] +[[package]] +name = "webpki" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "webpki-roots" version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940" dependencies = [ - "webpki", + "webpki 0.21.4", +] + +[[package]] +name = "webpki-roots" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c475786c6f47219345717a043a37ec04cb4bc185e28853adcc4fa0a947eba630" +dependencies = [ + "webpki 0.22.0", ] [[package]] diff --git a/apps/Cargo.toml b/apps/Cargo.toml index 4a54503eac..6cc7afef7b 100644 --- a/apps/Cargo.toml +++ b/apps/Cargo.toml @@ -93,7 +93,7 @@ itertools = "0.10.1" jsonpath_lib = "0.3.0" libc = "0.2.97" libloading = "0.7.2" -libp2p = "0.40.0" +libp2p = "0.41.0" num-derive = "0.3.3" num-traits = "0.2.14" num_cpus = "1.13.0" diff --git a/apps/src/lib/node/gossip/behaviour/discovery.rs b/apps/src/lib/node/gossip/behaviour/discovery.rs index 58b33204eb..c50985d36a 100644 --- a/apps/src/lib/node/gossip/behaviour/discovery.rs +++ b/apps/src/lib/node/gossip/behaviour/discovery.rs @@ -473,25 +473,10 @@ impl NetworkBehaviour for DiscoveryBehaviour { } MdnsEvent::Expired(_) => {} }, - NetworkBehaviourAction::DialAddress { - address, - handler: _, - } => { - let handler = self.new_handler(); - return Poll::Ready(NetworkBehaviourAction::DialAddress { - address, - handler, - }); - } - NetworkBehaviourAction::DialPeer { - peer_id, - condition, - handler: _, - } => { + NetworkBehaviourAction::Dial { opts, handler: _ } => { let handler = self.new_handler(); - return Poll::Ready(NetworkBehaviourAction::DialPeer { - peer_id, - condition, + return Poll::Ready(NetworkBehaviourAction::Dial { + opts, handler, }); } diff --git a/apps/src/lib/node/gossip/behaviour/mod.rs b/apps/src/lib/node/gossip/behaviour/mod.rs index 40c3de38d2..ad332ad77e 100644 --- a/apps/src/lib/node/gossip/behaviour/mod.rs +++ b/apps/src/lib/node/gossip/behaviour/mod.rs @@ -194,6 +194,7 @@ impl Behaviour { Gossipsub::new_with_subscription_filter( MessageAuthenticity::Signed(key), gossipsub_config, + None, filter, ) .unwrap(); diff --git a/tests/Cargo.toml b/tests/Cargo.toml index b9316d3b9e..0f61a6db2a 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -57,7 +57,7 @@ color-eyre = "0.5.11" escargot = "0.5.2" eyre = "0.6.5" itertools = "0.10.0" -libp2p = "0.40.0" +libp2p = "0.41.0" pretty_assertions = "0.7.2" rexpect = {git = "https://github.com/heliaxdev/rexpect.git", branch = "tomas/eof-hack-fix"} From c2afb15ea982c67c28300b42239e9bf13458554f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Tue, 28 Dec 2021 18:22:01 +0100 Subject: [PATCH 4/7] gossip/discovery: box KademliaEvent --- apps/src/lib/node/gossip/behaviour/discovery.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/src/lib/node/gossip/behaviour/discovery.rs b/apps/src/lib/node/gossip/behaviour/discovery.rs index c50985d36a..91200ebdb1 100644 --- a/apps/src/lib/node/gossip/behaviour/discovery.rs +++ b/apps/src/lib/node/gossip/behaviour/discovery.rs @@ -51,7 +51,7 @@ pub enum DiscoveryEvent { Disconnected(PeerId), /// This case is only use to clean the code in the poll fct - KademliaEvent(KademliaEvent), + KademliaEvent(Box), } /// `DiscoveryBehaviour` configuration. @@ -415,7 +415,9 @@ impl NetworkBehaviour for DiscoveryBehaviour { while let Poll::Ready(ev) = self.kademlia.poll(cx, params) { if let NetworkBehaviourAction::GenerateEvent(_kad_ev) = ev { } else { - return Poll::Ready(ev.map_out(DiscoveryEvent::KademliaEvent)); + return Poll::Ready(ev.map_out(|ev| { + DiscoveryEvent::KademliaEvent(Box::new(ev)) + })); } } From 746a0c750a9284fef99551e72512cc73348f7959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Wed, 29 Dec 2021 12:18:15 +0100 Subject: [PATCH 5/7] changelog: add #340 --- .changelog/unreleased/improvements/340-340.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changelog/unreleased/improvements/340-340.md diff --git a/.changelog/unreleased/improvements/340-340.md b/.changelog/unreleased/improvements/340-340.md new file mode 100644 index 0000000000..c800d509b7 --- /dev/null +++ b/.changelog/unreleased/improvements/340-340.md @@ -0,0 +1,2 @@ +- Updated libp2p dependency to v0.41.0 + ([#340](https://github.com/anoma/anoma/issues/340)) \ No newline at end of file From 811e25a301ffb12a07fe58b8afff03d014437bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Wed, 29 Dec 2021 11:58:50 +0100 Subject: [PATCH 6/7] all: update dependencies --- Cargo.lock | 724 +++++++++++++++----- apps/Cargo.toml | 14 +- apps/src/lib/logging.rs | 3 +- apps/src/lib/node/ledger/storage/rocksdb.rs | 8 +- matchmaker/mm_token_exch/Cargo.toml | 2 +- shared/Cargo.toml | 6 +- tests/Cargo.toml | 8 +- wasm/tx_template/Cargo.lock | 70 +- wasm/vp_template/Cargo.lock | 70 +- wasm/wasm_source/Cargo.lock | 70 +- wasm/wasm_source/Cargo.toml | 2 +- 11 files changed, 727 insertions(+), 250 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a617ca55a7..5715de7d12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -113,7 +113,7 @@ dependencies = [ "rust_decimal", "serde 1.0.132", "serde_json", - "sha2", + "sha2 0.10.0", "sparse-merkle-tree", "tempfile", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", @@ -183,7 +183,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_regex", - "sha2", + "sha2 0.10.0", "signal-hook", "sparse-merkle-tree", "sysinfo", @@ -253,7 +253,7 @@ dependencies = [ "pretty_assertions", "rexpect", "serde_json", - "sha2", + "sha2 0.10.0", "tempfile", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", @@ -430,9 +430,9 @@ checksum = "e22d1f4b888c298a027c99dc9048015fac177587de20fc30232a057dfbe24a21" [[package]] name = "assert_cmd" -version = "1.0.8" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c98233c6673d8601ab23e77eb38f999c51100d46c5703b17288c57fddf3a1ffe" +checksum = "e996dc7940838b7ef1096b882e29ec30a3149a3a443cdc8dba19ed382eca1fe2" dependencies = [ "bstr", "doc-comment", @@ -760,7 +760,7 @@ dependencies = [ "bitflags", "cexpr", "clang-sys", - "lazy_static 1.4.0", + "lazy_static", "lazycell", "peeking_take_while", "proc-macro2", @@ -787,9 +787,9 @@ checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" [[package]] name = "bitflags" -version = "1.3.2" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "blake2" @@ -838,6 +838,12 @@ dependencies = [ "digest 0.9.0", ] +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + [[package]] name = "block-buffer" version = "0.7.3" @@ -860,6 +866,15 @@ dependencies = [ "generic-array 0.14.4", ] +[[package]] +name = "block-buffer" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" +dependencies = [ + "generic-array 0.14.4", +] + [[package]] name = "block-padding" version = "0.1.5" @@ -946,7 +961,7 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "memchr", "regex-automata", ] @@ -1000,14 +1015,22 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" +[[package]] +name = "camino" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52d74260d9bf6944e2208aa46841b4b8f0d7ffc0849a06837b2f510337f86b2b" + [[package]] name = "cargo-watch" -version = "7.7.0" +version = "8.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97a4cf2908216028d1d97f49ed180367f009fdb3cd07550d0ef2db42bd6c739f" +checksum = "17dfad0c1adee63f73c7e73d283ab5186db66c3ec4c5b6bcc7683b344c8d46c6" dependencies = [ + "camino", "clap 2.34.0", "log 0.4.14", + "notify-rust", "shell-escape", "stderrlog", "watchexec", @@ -1112,7 +1135,6 @@ dependencies = [ "atty", "bitflags", "strsim 0.8.0", - "term_size", "textwrap 0.11.0", "unicode-width", "vec_map", @@ -1126,7 +1148,7 @@ dependencies = [ "atty", "bitflags", "indexmap", - "lazy_static 1.4.0", + "lazy_static", "os_str_bytes", "strsim 0.10.0", "termcolor", @@ -1135,6 +1157,19 @@ dependencies = [ "vec_map", ] +[[package]] +name = "clearscreen" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7ed49b0e894fe6264a58496c7ec4e9d3c46f66b59efae527cd5bee429d0a418" +dependencies = [ + "nix 0.22.2", + "terminfo", + "thiserror", + "which", + "winapi 0.3.9", +] + [[package]] name = "cloudabi" version = "0.0.3" @@ -1176,6 +1211,16 @@ dependencies = [ "tracing-error", ] +[[package]] +name = "command-group" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7a8a86f409b4a59df3a3e4bee2de0b83f1755fdd2a25e3a9684c396fc4bed2c" +dependencies = [ + "nix 0.22.2", + "winapi 0.3.9", +] + [[package]] name = "concat-idents" version = "1.1.3" @@ -1201,7 +1246,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b1b9d958c2b1368a663f05538fc1b5975adce1e19f435acceae987aceeeb369" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "nom 5.1.2", "rust-ini", "serde 1.0.132", @@ -1375,7 +1420,7 @@ checksum = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd" dependencies = [ "cfg-if 1.0.0", "crossbeam-utils 0.8.5", - "lazy_static 1.4.0", + "lazy_static", "memoffset", "scopeguard", ] @@ -1387,7 +1432,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6" dependencies = [ "cfg-if 0.1.10", - "lazy_static 1.4.0", + "lazy_static", ] [[package]] @@ -1398,7 +1443,7 @@ checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" dependencies = [ "autocfg 1.0.1", "cfg-if 0.1.10", - "lazy_static 1.4.0", + "lazy_static", ] [[package]] @@ -1408,7 +1453,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db" dependencies = [ "cfg-if 1.0.0", - "lazy_static 1.4.0", + "lazy_static", ] [[package]] @@ -1417,6 +1462,15 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +[[package]] +name = "crypto-common" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d6b536309245c849479fba3da410962a43ed8e51c26b729208ec0ac2798d0" +dependencies = [ + "generic-array 0.14.4", +] + [[package]] name = "crypto-mac" version = "0.8.0" @@ -1650,6 +1704,49 @@ dependencies = [ "generic-array 0.14.4", ] +[[package]] +name = "digest" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b" +dependencies = [ + "block-buffer 0.10.0", + "crypto-common", + "generic-array 0.14.4", +] + +[[package]] +name = "dirs" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901" +dependencies = [ + "libc", + "redox_users 0.3.5", + "winapi 0.3.9", +] + +[[package]] +name = "dirs" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3" +dependencies = [ + "cfg-if 0.1.10", + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03d86534ed367a67548dc68113a0f5db55432fdfbb6e6f9d77704397d95d5780" +dependencies = [ + "libc", + "redox_users 0.4.0", + "winapi 0.3.9", +] + [[package]] name = "dns-parser" version = "0.8.0" @@ -1680,7 +1777,7 @@ checksum = "47b1801e630bd336d0bbbdbf814de6cc749c9a400c7e3d995e6adfd455d0c83c" dependencies = [ "bitflags", "byteorder", - "lazy_static 1.4.0", + "lazy_static", "proc-macro-error", "proc-macro2", "quote", @@ -1719,7 +1816,7 @@ dependencies = [ "rand 0.7.3", "serde 1.0.132", "serde_bytes", - "sha2", + "sha2 0.9.8", "zeroize", ] @@ -1729,17 +1826,6 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" -[[package]] -name = "embed-resource" -version = "1.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85505eb239fc952b300f29f0556d2d884082a83566768d980278d8faf38c780d" -dependencies = [ - "cc", - "vswhom", - "winreg 0.10.1", -] - [[package]] name = "encoding_rs" version = "0.8.30" @@ -1761,6 +1847,27 @@ dependencies = [ "syn", ] +[[package]] +name = "enumflags2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83c8d82922337cd23a15f88b70d8e4ef5f11da38dd7cdb55e84dd5de99695da0" +dependencies = [ + "enumflags2_derive", + "serde 1.0.132", +] + +[[package]] +name = "enumflags2_derive" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "enumset" version = "1.0.8" @@ -1782,15 +1889,6 @@ dependencies = [ "syn", ] -[[package]] -name = "env_logger" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" -dependencies = [ - "log 0.4.14", -] - [[package]] name = "error-chain" version = "0.12.4" @@ -1862,12 +1960,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "fixedbitset" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" - [[package]] name = "fixedbitset" version = "0.4.0" @@ -2175,9 +2267,9 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" [[package]] name = "globset" -version = "0.4.8" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10463d9ff00a2a068db14231982f5132edebad0d7660cd956a1c30292dbcbfbd" +checksum = "c152169ef1e421390738366d2f796655fec62621dabbd0fd476f905934061e4a" dependencies = [ "aho-corasick", "bstr", @@ -2551,7 +2643,7 @@ dependencies = [ "serde 1.0.132", "serde_derive", "serde_json", - "sha2", + "sha2 0.9.8", "subtle-encoding", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", "tendermint-light-client 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/abcipp-v0.23.0)", @@ -2578,7 +2670,7 @@ dependencies = [ "serde 1.0.132", "serde_derive", "serde_json", - "sha2", + "sha2 0.9.8", "subtle-encoding", "tendermint 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", "tendermint-light-client 0.23.0 (git+https://github.com/heliaxdev/tendermint-rs?branch=yuji/rebase_v0.23.0)", @@ -2625,7 +2717,7 @@ dependencies = [ "hex", "prost", "ripemd160", - "sha2", + "sha2 0.9.8", "sha3", "sp-std", ] @@ -2858,12 +2950,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" -[[package]] -name = "lazy_static" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73" - [[package]] name = "lazy_static" version = "1.4.0" @@ -2933,7 +3019,7 @@ dependencies = [ "futures-timer", "getrandom 0.2.3", "instant", - "lazy_static 1.4.0", + "lazy_static", "libp2p-core", "libp2p-deflate", "libp2p-dns", @@ -2978,7 +3064,7 @@ dependencies = [ "fnv", "futures 0.3.19", "futures-timer", - "lazy_static 1.4.0", + "lazy_static", "libsecp256k1", "log 0.4.14", "multiaddr", @@ -2991,7 +3077,7 @@ dependencies = [ "rand 0.8.4", "ring", "rw-stream-sink", - "sha2", + "sha2 0.9.8", "smallvec 1.7.0", "thiserror", "unsigned-varint", @@ -3066,7 +3152,7 @@ dependencies = [ "prost-build", "rand 0.7.3", "regex", - "sha2", + "sha2 0.9.8", "smallvec 1.7.0", "unsigned-varint", ] @@ -3108,7 +3194,7 @@ dependencies = [ "prost", "prost-build", "rand 0.7.3", - "sha2", + "sha2 0.9.8", "smallvec 1.7.0", "uint", "unsigned-varint", @@ -3126,7 +3212,7 @@ dependencies = [ "dns-parser", "futures 0.3.19", "if-watch", - "lazy_static 1.4.0", + "lazy_static", "libp2p-core", "libp2p-swarm", "log 0.4.14", @@ -3178,13 +3264,13 @@ dependencies = [ "bytes 1.1.0", "curve25519-dalek", "futures 0.3.19", - "lazy_static 1.4.0", + "lazy_static", "libp2p-core", "log 0.4.14", "prost", "prost-build", "rand 0.8.4", - "sha2", + "sha2 0.9.8", "snow", "static_assertions", "x25519-dalek", @@ -3278,7 +3364,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.4", - "sha2", + "sha2 0.9.8", "thiserror", "unsigned-varint", "void", @@ -3431,7 +3517,7 @@ dependencies = [ "libsecp256k1-gen-genmult", "rand 0.8.4", "serde 1.0.132", - "sha2", + "sha2 0.9.8", "typenum", ] @@ -3545,6 +3631,18 @@ dependencies = [ "linked-hash-map", ] +[[package]] +name = "mac-notification-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dfb6b71a9a89cd38b395d994214297447e8e63b1ba5708a9a2b0b1048ceda76" +dependencies = [ + "cc", + "chrono", + "dirs 1.0.5", + "objc-foundation", +] + [[package]] name = "mach" version = "0.3.2" @@ -3554,6 +3652,15 @@ dependencies = [ "libc", ] +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + [[package]] name = "match_cfg" version = "0.1.0" @@ -3752,7 +3859,7 @@ dependencies = [ "anoma_macros", "borsh", "good_lp", - "petgraph 0.5.1", + "petgraph", "rust_decimal", "serde 1.0.132", "serde_json", @@ -3792,7 +3899,7 @@ dependencies = [ "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", - "sha2", + "sha2 0.9.8", "unsigned-varint", ] @@ -3836,7 +3943,7 @@ version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "libc", "log 0.4.14", "openssl", @@ -3848,6 +3955,16 @@ dependencies = [ "tempfile", ] +[[package]] +name = "nb-connect" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1bb540dc6ef51cfe1916ec038ce7a620daf3a111e2502d745197cd53d6bca15" +dependencies = [ + "libc", + "socket2 0.4.2", +] + [[package]] name = "ndarray" version = "0.13.1" @@ -3887,14 +4004,28 @@ dependencies = [ [[package]] name = "nix" -version = "0.20.0" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5e06129fb611568ef4e868c14b326274959aa70ff7776e9d55323531c374945" +dependencies = [ + "bitflags", + "cc", + "cfg-if 1.0.0", + "libc", + "memoffset", +] + +[[package]] +name = "nix" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa9b4819da1bc61c0ea48b63b7bc8604064dd43013e7cc325df098d49cd7c18a" +checksum = "d3bb9a13fa32bc5aeb64150cd3f32d6cf4c748f8f8a417cce5d2eb976a8370ba" dependencies = [ "bitflags", "cc", "cfg-if 1.0.0", "libc", + "memoffset", ] [[package]] @@ -3953,6 +4084,20 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "notify-rust" +version = "4.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca6ebab865e67efdd7182a88d76cadbdd2a8d02d1c7a4e16bb7c234016a12cac" +dependencies = [ + "mac-notification-sys", + "serde 1.0.132", + "winrt-notification", + "zbus", + "zvariant", + "zvariant_derive", +] + [[package]] name = "ntapi" version = "0.3.6" @@ -4038,6 +4183,35 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8f8bdf33df195859076e54ab11ee78a1b208382d3a26ec40d142ffc1ecc49ef" +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc-foundation" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9" +dependencies = [ + "block", + "objc", + "objc_id", +] + +[[package]] +name = "objc_id" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" +dependencies = [ + "objc", +] + [[package]] name = "object" version = "0.22.0" @@ -4133,9 +4307,9 @@ dependencies = [ [[package]] name = "orion" -version = "0.16.1" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6624905ddd92e460ff0685567539ed1ac985b2dee4c92c7edcd64fce905b00c" +checksum = "33180dfe9d07da0767a71bbcc274b327700c57cf3cf64d858e55122b6ae11170" dependencies = [ "ct-codecs", "getrandom 0.2.3", @@ -4304,24 +4478,52 @@ dependencies = [ [[package]] name = "petgraph" -version = "0.5.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" +checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f" dependencies = [ - "fixedbitset 0.2.0", + "fixedbitset", "indexmap", "serde 1.0.132", "serde_derive", ] [[package]] -name = "petgraph" -version = "0.6.0" +name = "phf" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f" +checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" dependencies = [ - "fixedbitset 0.4.0", - "indexmap", + "phf_shared", +] + +[[package]] +name = "phf_codegen" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" +dependencies = [ + "phf_shared", + "rand 0.7.3", +] + +[[package]] +name = "phf_shared" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" +dependencies = [ + "siphasher", ] [[package]] @@ -4459,9 +4661,9 @@ dependencies = [ [[package]] name = "pretty_assertions" -version = "0.7.2" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cab0e7c02cf376875e9335e0ba1da535775beb5450d21e1dffca068818ed98b" +checksum = "ec0cfe1b2403f172ba0f234e500906ee0a3e493fb81092dac23ebefe129301cc" dependencies = [ "ansi_term", "ctor", @@ -4530,7 +4732,7 @@ dependencies = [ "bit-set", "bitflags", "byteorder", - "lazy_static 1.4.0", + "lazy_static", "num-traits 0.2.14", "quick-error 2.0.1", "rand 0.8.4", @@ -4549,7 +4751,7 @@ dependencies = [ "bit-set", "bitflags", "byteorder", - "lazy_static 1.4.0", + "lazy_static", "num-traits 0.2.14", "quick-error 2.0.1", "rand 0.8.4", @@ -4579,10 +4781,10 @@ dependencies = [ "bytes 1.1.0", "heck", "itertools", - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "multimap", - "petgraph 0.6.0", + "petgraph", "prost", "prost-types", "regex", @@ -4670,7 +4872,7 @@ dependencies = [ "rand_isaac", "rand_jitter", "rand_os", - "rand_pcg", + "rand_pcg 0.1.2", "rand_xorshift 0.1.1", "winapi 0.3.9", ] @@ -4686,6 +4888,7 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc 0.2.0", + "rand_pcg 0.2.1", ] [[package]] @@ -4834,6 +5037,15 @@ dependencies = [ "rand_core 0.4.2", ] +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] + [[package]] name = "rand_xorshift" version = "0.1.1" @@ -4879,7 +5091,7 @@ dependencies = [ "crossbeam-channel 0.5.1", "crossbeam-deque", "crossbeam-utils 0.8.5", - "lazy_static 1.4.0", + "lazy_static", "num_cpus", ] @@ -4916,6 +5128,27 @@ dependencies = [ "redox_syscall 0.2.10", ] +[[package]] +name = "redox_users" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" +dependencies = [ + "getrandom 0.1.16", + "redox_syscall 0.1.57", + "rust-argon2", +] + +[[package]] +name = "redox_users" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" +dependencies = [ + "getrandom 0.2.3", + "redox_syscall 0.2.10", +] + [[package]] name = "regalloc" version = "0.0.31" @@ -4991,7 +5224,7 @@ dependencies = [ "hyper-tls", "ipnet", "js-sys", - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "mime 0.3.16", "native-tls", @@ -5058,18 +5291,18 @@ dependencies = [ [[package]] name = "rlimit" -version = "0.5.4" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81a9ed03edbed449d6897c2092c71ab5f7b5fb80f6f0b1a3ed6d40a6f9fc0720" +checksum = "cc0bf25554376fd362f54332b8410a625c71f15445bca32ffdfdf4ec9ac91726" dependencies = [ "libc", ] [[package]] name = "rocksdb" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c749134fda8bfc90d0de643d59bfc841dcb3ac8a1062e12b6754bd60235c48b3" +checksum = "7a62eca5cacf2c8261128631bed9f045598d40bfbe4b29f5163f0f802f8f44a7" dependencies = [ "libc", "librocksdb-sys", @@ -5085,6 +5318,18 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "rust-argon2" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb" +dependencies = [ + "base64 0.13.0", + "blake2b_simd", + "constant_time_eq", + "crossbeam-utils 0.8.5", +] + [[package]] name = "rust-ini" version = "0.13.0" @@ -5275,10 +5520,16 @@ version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "winapi 0.3.9", ] +[[package]] +name = "scoped-tls" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" + [[package]] name = "scopeguard" version = "1.1.0" @@ -5307,9 +5558,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.4.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525bc1abfda2e1998d152c45cf13e696f76d0a4972310b22fac1658b05df7c87" +checksum = "23a2ac85147a3a11d77ecf1bc7166ec0b92febfa4461c37944e180f319ece467" dependencies = [ "bitflags", "core-foundation", @@ -5382,7 +5633,7 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a3a4e0ea8a88553209f6cc6cfe8724ecad22e1acf372793c27d995290fe74f8" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "num-traits 0.1.43", "regex", "serde 0.8.23", @@ -5501,6 +5752,17 @@ dependencies = [ "opaque-debug 0.3.0", ] +[[package]] +name = "sha2" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d964dd36bb15bcf2f2b35694c072feab74969a54f2bbeec7a2d725d2bdcb6" +dependencies = [ + "cfg-if 1.0.0", + "cpufeatures", + "digest 0.10.1", +] + [[package]] name = "sha3" version = "0.9.1" @@ -5519,7 +5781,7 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", ] [[package]] @@ -5565,6 +5827,12 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc47a29ce97772ca5c927f75bac34866b16d64e07f330c3248e2d7226623901b" +[[package]] +name = "siphasher" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "533494a8f9b724d33625ab53c6c4800f7cc445895924a8ef649222dcb76e938b" + [[package]] name = "slab" version = "0.4.5" @@ -5599,7 +5867,7 @@ dependencies = [ "rand_core 0.6.3", "ring", "rustc_version 0.3.3", - "sha2", + "sha2 0.9.8", "subtle", "x25519-dalek", ] @@ -5656,7 +5924,7 @@ dependencies = [ "borsh", "cfg-if 1.0.0", "ics23", - "sha2", + "sha2 0.9.8", ] [[package]] @@ -5690,15 +5958,15 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "stderrlog" -version = "0.4.3" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e5ee9b90a5452c570a0b0ac1c99ae9498db7e56e33d74366de7f2a7add7f25" +checksum = "45a53e2eff3e94a019afa6265e8ee04cb05b9d33fe9f5078b14e4e391d155a38" dependencies = [ "atty", "chrono", "log 0.4.14", "termcolor", - "thread_local 0.3.4", + "thread_local", ] [[package]] @@ -5713,6 +5981,27 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +[[package]] +name = "strum" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "subtle" version = "2.4.1" @@ -5753,9 +6042,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.21.1" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb6c2c4a6ca462f07ca89841a2618dca6e405304d19ae238997e64915d89f513" +checksum = "ccb37aa4af23791c584202d286ed9420e023e9d27e49d5a76215623f4bcc2502" dependencies = [ "cfg-if 1.0.0", "core-foundation-sys", @@ -5816,7 +6105,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", - "sha2", + "sha2 0.9.8", "signature", "subtle", "subtle-encoding", @@ -5844,7 +6133,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", - "sha2", + "sha2 0.9.8", "signature", "subtle", "subtle-encoding", @@ -6047,22 +6336,25 @@ dependencies = [ ] [[package]] -name = "term_size" -version = "0.3.2" +name = "termcolor" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" +checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" dependencies = [ - "libc", - "winapi 0.3.9", + "winapi-util", ] [[package]] -name = "termcolor" -version = "1.1.2" +name = "terminfo" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" +checksum = "76971977e6121664ec1b960d1313aacfa75642adc93b9d4d53b247bd4cb1747e" dependencies = [ - "winapi-util", + "dirs 2.0.2", + "fnv", + "nom 5.1.2", + "phf", + "phf_codegen", ] [[package]] @@ -6100,7 +6392,6 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" dependencies = [ - "term_size", "unicode-width", ] @@ -6135,21 +6426,11 @@ dependencies = [ [[package]] name = "thread_local" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14" -dependencies = [ - "lazy_static 0.2.11", - "unreachable", -] - -[[package]] -name = "thread_local" -version = "1.1.3" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd" +checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" dependencies = [ - "once_cell", + "lazy_static", ] [[package]] @@ -6268,7 +6549,7 @@ checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351" dependencies = [ "crossbeam-utils 0.7.2", "futures 0.1.31", - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "mio 0.6.23", "num_cpus", @@ -6521,7 +6802,7 @@ name = "tracing-core" version = "0.1.21" source = "git+https://github.com/tokio-rs/tracing/?rev=6cc6c47354ceeb47da7c95faa41c6d29b71b5f37#6cc6c47354ceeb47da7c95faa41c6d29b71b5f37" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", ] [[package]] @@ -6559,7 +6840,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6923477a48e41c1951f1999ef8bb5a3023eb723ceadafe78ffb65dc366761e3" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "tracing-core", ] @@ -6569,7 +6850,7 @@ name = "tracing-log" version = "0.1.2" source = "git+https://github.com/tokio-rs/tracing/?rev=6cc6c47354ceeb47da7c95faa41c6d29b71b5f37#6cc6c47354ceeb47da7c95faa41c6d29b71b5f37" dependencies = [ - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "tracing-core", ] @@ -6590,14 +6871,14 @@ source = "git+https://github.com/tokio-rs/tracing/?rev=6cc6c47354ceeb47da7c95faa dependencies = [ "ansi_term", "chrono", - "lazy_static 1.4.0", + "lazy_static", "matchers", "regex", "serde 1.0.132", "serde_json", "sharded-slab", "smallvec 1.7.0", - "thread_local 1.1.3", + "thread_local", "tracing", "tracing-core", "tracing-log 0.1.2 (git+https://github.com/tokio-rs/tracing/?rev=6cc6c47354ceeb47da7c95faa41c6d29b71b5f37)", @@ -6639,7 +6920,7 @@ dependencies = [ "futures-util", "idna 0.2.3", "ipnet", - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "rand 0.8.4", "smallvec 1.7.0", @@ -6657,7 +6938,7 @@ dependencies = [ "cfg-if 1.0.0", "futures-util", "ipconfig", - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "lru-cache", "parking_lot 0.11.2", @@ -6774,15 +7055,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "unreachable" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" -dependencies = [ - "void", -] - [[package]] name = "unsigned-varint" version = "0.7.1" @@ -6882,26 +7154,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" -[[package]] -name = "vswhom" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" -dependencies = [ - "libc", - "vswhom-sys", -] - -[[package]] -name = "vswhom-sys" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc2f5402d3d0e79a069714f7b48e3ecc60be7775a2c049cb839457457a239532" -dependencies = [ - "cc", - "libc", -] - [[package]] name = "wait-timeout" version = "0.2.0" @@ -6967,7 +7219,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b" dependencies = [ "bumpalo", - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", "proc-macro2", "quote", @@ -7096,7 +7348,7 @@ dependencies = [ "byteorder", "dynasm", "dynasmrt", - "lazy_static 1.4.0", + "lazy_static", "more-asserts", "rayon", "serde 1.0.132", @@ -7126,7 +7378,7 @@ checksum = "efe4667d6bd888f26ae8062a63a9379fa697415b4b4e380f33832e8418fd71b5" dependencies = [ "backtrace", "bincode", - "lazy_static 1.4.0", + "lazy_static", "memmap2 0.2.3", "more-asserts", "rustc-demangle", @@ -7253,19 +7505,18 @@ dependencies = [ [[package]] name = "watchexec" -version = "1.15.0" +version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a0fba7f2b9f4240dadf1c2eb4cf15359ffeb19d4f1841cb2d85a7bb4f82755f" +checksum = "c52e0868bc57765fa91593a173323f464855e53b27f779e1110ba0fb4cb6b406" dependencies = [ - "clap 2.34.0", + "clearscreen", + "command-group", "derive_builder", - "embed-resource", - "env_logger", "glob", "globset", - "lazy_static 1.4.0", + "lazy_static", "log 0.4.14", - "nix 0.20.0", + "nix 0.22.2", "notify", "walkdir", "winapi 0.3.9", @@ -7376,7 +7627,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea187a8ef279bc014ec368c27a920da2024d2a711109bfbe3440585d5cf27ad9" dependencies = [ "either", - "lazy_static 1.4.0", + "lazy_static", "libc", ] @@ -7429,6 +7680,42 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9f39345ae0c8ab072c0ac7fe8a8b411636aa34f89be19ddd0d9226544f13944" +dependencies = [ + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_i686_gnu" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0866510a3eca9aed73a077490bbbf03e5eaac4e1fd70849d89539e5830501fd" + +[[package]] +name = "windows_i686_msvc" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf0ffed56b7e9369a29078d2ab3aaeceea48eb58999d2cff3aa2494a275b95c6" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384a173630588044205a2993b6864a2f56e5a8c1e7668c07b93ec18cf4888dc4" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bd8f062d8ca5446358159d79a90be12c543b3a965c847c8f3eedf14b321d399" + [[package]] name = "winreg" version = "0.6.2" @@ -7448,12 +7735,14 @@ dependencies = [ ] [[package]] -name = "winreg" -version = "0.10.1" +name = "winrt-notification" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" +checksum = "eda101fb8e034a25f3d50a0714d7ca4f234a4fc7bc57427f6d81040db0ccbe6a" dependencies = [ - "winapi 0.3.9", + "strum", + "windows", + "xml-rs", ] [[package]] @@ -7486,6 +7775,12 @@ dependencies = [ "libc", ] +[[package]] +name = "xml-rs" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3" + [[package]] name = "yaml-rust" version = "0.4.5" @@ -7509,6 +7804,41 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "zbus" +version = "1.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5983c3d035549ab80db67c844ec83ed271f7c1f2546fd9577c594d34c1b6c85" +dependencies = [ + "async-io", + "byteorder", + "derivative", + "enumflags2", + "fastrand", + "futures 0.3.19", + "nb-connect", + "nix 0.20.2", + "once_cell", + "polling", + "scoped-tls", + "serde 1.0.132", + "serde_repr", + "zbus_macros", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "1.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bce54ac7b2150a2fa21ad5842a7470ce2288158d7da1f9bfda8ad455a1c59a97" +dependencies = [ + "proc-macro-crate 0.1.5", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "zeroize" version = "1.3.0" @@ -7529,3 +7859,29 @@ dependencies = [ "syn", "synstructure", ] + +[[package]] +name = "zvariant" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a68c7b55f2074489b7e8e07d2d0a6ee6b4f233867a653c664d8020ba53692525" +dependencies = [ + "byteorder", + "enumflags2", + "libc", + "serde 1.0.132", + "static_assertions", + "zvariant_derive", +] + +[[package]] +name = "zvariant_derive" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4ca5e22593eb4212382d60d26350065bf2a02c34b85bc850474a74b589a3de9" +dependencies = [ + "proc-macro-crate 1.1.0", + "proc-macro2", + "quote", + "syn", +] diff --git a/apps/Cargo.toml b/apps/Cargo.toml index 6cc7afef7b..9cf1e3dd4d 100644 --- a/apps/Cargo.toml +++ b/apps/Cargo.toml @@ -98,7 +98,7 @@ num-derive = "0.3.3" num-traits = "0.2.14" num_cpus = "1.13.0" once_cell = "1.8.0" -orion = "0.16.0" +orion = "0.17.0" prost = "0.9.0" prost-types = "0.9.0" # TODO the older versions of rand and rand_core are currently required to avoid mismatching version issue (https://github.com/dalek-cryptography/ed25519-dalek/pull/159) @@ -107,18 +107,18 @@ rand_core = {version = "0.5", default-features = false} rayon = "=1.5.1" regex = "1.4.5" reqwest = "0.11.4" -rlimit = "0.5.4" -rocksdb = "0.16.0" +rlimit = "0.6.2" +rocksdb = "0.17.0" rpassword = "5.0.1" serde = {version = "1.0.125", features = ["derive"]} serde_bytes = "0.11.5" serde_json = "1.0.62" serde_regex = "1.1.0" -sha2 = "0.9.3" +sha2 = "0.10.0" signal-hook = "0.3.9" sparse-merkle-tree = {git = "https://github.com/heliaxdev/sparse-merkle-tree", branch = "yuji/prost-0.9", features = ["borsh"]} # sysinfo with disabled multithread feature -sysinfo = {version = "=0.21.1", default-features = false} +sysinfo = {version = "0.22.4", default-features = false} tar = "0.4.37" # temporarily using fork work-around for https://github.com/informalsystems/tendermint-rs/issues/971 tendermint = {git = "https://github.com/heliaxdev/tendermint-rs", branch = "yuji/abcipp-v0.23.0", optional = true} @@ -140,13 +140,13 @@ tower-abci = {git = "https://github.com/heliaxdev/tower-abci", branch = "yuji/ab tower-abci-old = {package = "tower-abci", git = "https://github.com/heliaxdev/tower-abci", branch = "yuji/rebase_v0.23.0", optional = true} tracing = "0.1.29" tracing-log = "0.1.2" -tracing-subscriber = "0.2.25" +tracing-subscriber = "=0.2.25" websocket = "0.26.2" winapi = "0.3.9" [dev-dependencies] anoma = {path = "../shared", default-features = false, features = ["testing", "wasm-runtime"]} -cargo-watch = "7.5.0" +cargo-watch = "8.1.1" proptest = "1.0.0" tempfile = "3.2.0" tokio-test = "0.4.2" diff --git a/apps/src/lib/logging.rs b/apps/src/lib/logging.rs index a71559a7f9..b141e64cde 100644 --- a/apps/src/lib/logging.rs +++ b/apps/src/lib/logging.rs @@ -4,8 +4,9 @@ use std::env; use color_eyre::eyre::Result; use eyre::WrapErr; use tracing_log::LogTracer; -use tracing_subscriber::filter::{Directive, EnvFilter}; +use tracing_subscriber::filter::Directive; use tracing_subscriber::fmt::Subscriber; +use tracing_subscriber::EnvFilter; pub const ENV_KEY: &str = "ANOMA_LOG"; diff --git a/apps/src/lib/node/ledger/storage/rocksdb.rs b/apps/src/lib/node/ledger/storage/rocksdb.rs index e1344c7759..378baaf690 100644 --- a/apps/src/lib/node/ledger/storage/rocksdb.rs +++ b/apps/src/lib/node/ledger/storage/rocksdb.rs @@ -730,9 +730,9 @@ fn set_max_open_files(cf_opts: &mut rocksdb::Options) { mod imp { use std::convert::TryInto; - use rlimit::{Resource, Rlim}; + use rlimit::Resource; - const DEFAULT_NOFILE_LIMIT: Rlim = Rlim::from_raw(16384); + const DEFAULT_NOFILE_LIMIT: u64 = 16384; pub fn set_max_open_files(cf_opts: &mut rocksdb::Options) { let max_open_files = match increase_nofile_limit() { @@ -743,14 +743,14 @@ mod imp { } }; if let Some(max_open_files) = - max_open_files.and_then(|max| max.as_raw().try_into().ok()) + max_open_files.and_then(|max| max.try_into().ok()) { cf_opts.set_max_open_files(max_open_files); } } /// Try to increase NOFILE limit and return the current soft limit. - fn increase_nofile_limit() -> std::io::Result { + fn increase_nofile_limit() -> std::io::Result { let (soft, hard) = Resource::NOFILE.get()?; tracing::debug!("Current NOFILE limit, soft={}, hard={}", soft, hard); diff --git a/matchmaker/mm_token_exch/Cargo.toml b/matchmaker/mm_token_exch/Cargo.toml index e341785700..5322260944 100644 --- a/matchmaker/mm_token_exch/Cargo.toml +++ b/matchmaker/mm_token_exch/Cargo.toml @@ -21,7 +21,7 @@ anoma = {path = "../../shared", default-features = false} anoma_macros = {path = "../../macros"} borsh = "0.9.0" good_lp = {version = "*", features = ["minilp"], default-features = false} -petgraph = {version = "0.5.1", features = ["serde-1"]} +petgraph = {version = "0.6.0", features = ["serde-1"]} rust_decimal = {version = "1.14.3"} serde = {version = "1.0.125"} serde_json = {version = "1.0.64"} diff --git a/shared/Cargo.toml b/shared/Cargo.toml index ffcc342049..b08c7c6df3 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -92,7 +92,7 @@ rand_core = {version = "0.5", optional = true} rand_new = {package = "rand", version = "0.8", optional = true} rust_decimal = "1.14.3" serde = {version = "1.0.125", features = ["derive"]} -sha2 = "0.9.3" +sha2 = "0.10.0" # We switch off "blake2b" because it cannot be compiled to wasm sparse-merkle-tree = {git = "https://github.com/heliaxdev/sparse-merkle-tree", branch = "yuji/prost-0.9", default-features = false, features = ["std", "borsh"]} tempfile = {version = "3.2.0", optional = true} @@ -123,11 +123,11 @@ derivative = "2.2.0" [dev-dependencies] assert_matches = "1.5.0" byte-unit = "4.0.13" -pretty_assertions = "0.7.2" +pretty_assertions = "1.0.0" proptest = "1.0.0" serde_json = "1.0.62" test-log = {version = "0.2.7", default-features = false, features = ["trace"]} -tracing-subscriber = {version = "0.2.25", default-features = false, features = ["env-filter", "fmt"]} +tracing-subscriber = {version = "=0.2.25", default-features = false, features = ["env-filter", "fmt"]} [build-dependencies] tonic-build = "0.6.0" diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 0f61a6db2a..0b664f4c8b 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -40,25 +40,25 @@ ibc-abci = {package = "ibc", git = "https://github.com/heliaxdev/ibc-rs", branch ibc-proto = {git = "https://github.com/heliaxdev/ibc-rs", branch = "yuji/abcipp-v0.23.0", optional = true} ibc-proto-abci = {package = "ibc-proto", git = "https://github.com/heliaxdev/ibc-rs", branch = "yuji/rebase_v0.23.0", optional = true} serde_json = {version = "1.0.65"} -sha2 = "0.9.3" +sha2 = "0.10.0" test-log = {version = "0.2.7", default-features = false, features = ["trace"]} # temporarily using fork work-around for https://github.com/informalsystems/tendermint-rs/issues/971 tempfile = "3.2.0" tendermint = {git = "https://github.com/heliaxdev/tendermint-rs", branch = "yuji/abcipp-v0.23.0", optional = true} tendermint-stable = {package = "tendermint", git = "https://github.com/heliaxdev/tendermint-rs", branch = "yuji/rebase_v0.23.0", optional = true} tracing = "0.1.26" -tracing-subscriber = {version = "0.2.25", default-features = false, features = ["env-filter", "fmt"]} +tracing-subscriber = {version = "=0.2.25", default-features = false, features = ["env-filter", "fmt"]} [dev-dependencies] anoma_apps = {path = "../apps", default-features = false, features = ["testing"]} -assert_cmd = "1.0.7" +assert_cmd = "2.0.2" borsh = "0.9.1" color-eyre = "0.5.11" escargot = "0.5.2" eyre = "0.6.5" itertools = "0.10.0" libp2p = "0.41.0" -pretty_assertions = "0.7.2" +pretty_assertions = "1.0.0" rexpect = {git = "https://github.com/heliaxdev/rexpect.git", branch = "tomas/eof-hack-fix"} # This is used to enable logging from tests diff --git a/wasm/tx_template/Cargo.lock b/wasm/tx_template/Cargo.lock index 4e3d3b787c..01e5d075e5 100644 --- a/wasm/tx_template/Cargo.lock +++ b/wasm/tx_template/Cargo.lock @@ -56,7 +56,7 @@ dependencies = [ "rand_core 0.5.1", "rust_decimal", "serde", - "sha2", + "sha2 0.10.0", "sparse-merkle-tree", "tempfile", "tendermint", @@ -99,7 +99,7 @@ dependencies = [ "ibc", "ibc-proto", "serde_json", - "sha2", + "sha2 0.10.0", "tempfile", "tendermint", "test-log", @@ -248,7 +248,7 @@ dependencies = [ "cfg-if 0.1.10", "constant_time_eq", "crypto-mac", - "digest", + "digest 0.9.0", ] [[package]] @@ -261,6 +261,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" +dependencies = [ + "generic-array", +] + [[package]] name = "block-padding" version = "0.2.1" @@ -542,6 +551,15 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "crypto-common" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d6b536309245c849479fba3da410962a43ed8e51c26b729208ec0ac2798d0" +dependencies = [ + "generic-array", +] + [[package]] name = "crypto-mac" version = "0.8.0" @@ -559,7 +577,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3" dependencies = [ "byteorder", - "digest", + "digest 0.9.0", "rand_core 0.5.1", "subtle", "zeroize", @@ -631,6 +649,17 @@ dependencies = [ "generic-array", ] +[[package]] +name = "digest" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b" +dependencies = [ + "block-buffer 0.10.0", + "crypto-common", + "generic-array", +] + [[package]] name = "dynasm" version = "1.1.0" @@ -678,7 +707,7 @@ dependencies = [ "rand 0.7.3", "serde", "serde_bytes", - "sha2", + "sha2 0.9.8", "zeroize", ] @@ -1035,7 +1064,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "sha2", + "sha2 0.9.8", "subtle-encoding", "tendermint", "tendermint-light-client", @@ -1069,7 +1098,7 @@ dependencies = [ "hex", "prost", "ripemd160", - "sha2", + "sha2 0.9.8", "sha3", "sp-std", ] @@ -1787,8 +1816,8 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eca4ecc81b7f313189bf73ce724400a07da2a6dac19588b03c8bd76a2dcc251" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "opaque-debug", ] @@ -1962,21 +1991,32 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" dependencies = [ - "block-buffer", + "block-buffer 0.9.0", "cfg-if 1.0.0", "cpufeatures", - "digest", + "digest 0.9.0", "opaque-debug", ] +[[package]] +name = "sha2" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d964dd36bb15bcf2f2b35694c072feab74969a54f2bbeec7a2d725d2bdcb6" +dependencies = [ + "cfg-if 1.0.0", + "cpufeatures", + "digest 0.10.1", +] + [[package]] name = "sha3" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "keccak", "opaque-debug", ] @@ -2038,7 +2078,7 @@ dependencies = [ "borsh", "cfg-if 1.0.0", "ics23", - "sha2", + "sha2 0.9.8", ] [[package]] @@ -2137,7 +2177,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", - "sha2", + "sha2 0.9.8", "signature", "subtle", "subtle-encoding", diff --git a/wasm/vp_template/Cargo.lock b/wasm/vp_template/Cargo.lock index f11c039b51..02fa25e2d2 100644 --- a/wasm/vp_template/Cargo.lock +++ b/wasm/vp_template/Cargo.lock @@ -56,7 +56,7 @@ dependencies = [ "rand_core 0.5.1", "rust_decimal", "serde", - "sha2", + "sha2 0.10.0", "sparse-merkle-tree", "tempfile", "tendermint", @@ -99,7 +99,7 @@ dependencies = [ "ibc", "ibc-proto", "serde_json", - "sha2", + "sha2 0.10.0", "tempfile", "tendermint", "test-log", @@ -248,7 +248,7 @@ dependencies = [ "cfg-if 0.1.10", "constant_time_eq", "crypto-mac", - "digest", + "digest 0.9.0", ] [[package]] @@ -261,6 +261,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" +dependencies = [ + "generic-array", +] + [[package]] name = "block-padding" version = "0.2.1" @@ -542,6 +551,15 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "crypto-common" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d6b536309245c849479fba3da410962a43ed8e51c26b729208ec0ac2798d0" +dependencies = [ + "generic-array", +] + [[package]] name = "crypto-mac" version = "0.8.0" @@ -559,7 +577,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3" dependencies = [ "byteorder", - "digest", + "digest 0.9.0", "rand_core 0.5.1", "subtle", "zeroize", @@ -631,6 +649,17 @@ dependencies = [ "generic-array", ] +[[package]] +name = "digest" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b" +dependencies = [ + "block-buffer 0.10.0", + "crypto-common", + "generic-array", +] + [[package]] name = "dynasm" version = "1.1.0" @@ -678,7 +707,7 @@ dependencies = [ "rand 0.7.3", "serde", "serde_bytes", - "sha2", + "sha2 0.9.8", "zeroize", ] @@ -1035,7 +1064,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "sha2", + "sha2 0.9.8", "subtle-encoding", "tendermint", "tendermint-light-client", @@ -1069,7 +1098,7 @@ dependencies = [ "hex", "prost", "ripemd160", - "sha2", + "sha2 0.9.8", "sha3", "sp-std", ] @@ -1787,8 +1816,8 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eca4ecc81b7f313189bf73ce724400a07da2a6dac19588b03c8bd76a2dcc251" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "opaque-debug", ] @@ -1962,21 +1991,32 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" dependencies = [ - "block-buffer", + "block-buffer 0.9.0", "cfg-if 1.0.0", "cpufeatures", - "digest", + "digest 0.9.0", "opaque-debug", ] +[[package]] +name = "sha2" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d964dd36bb15bcf2f2b35694c072feab74969a54f2bbeec7a2d725d2bdcb6" +dependencies = [ + "cfg-if 1.0.0", + "cpufeatures", + "digest 0.10.1", +] + [[package]] name = "sha3" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "keccak", "opaque-debug", ] @@ -2038,7 +2078,7 @@ dependencies = [ "borsh", "cfg-if 1.0.0", "ics23", - "sha2", + "sha2 0.9.8", ] [[package]] @@ -2137,7 +2177,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", - "sha2", + "sha2 0.9.8", "signature", "subtle", "subtle-encoding", diff --git a/wasm/wasm_source/Cargo.lock b/wasm/wasm_source/Cargo.lock index f0356e10c2..03b36980a4 100644 --- a/wasm/wasm_source/Cargo.lock +++ b/wasm/wasm_source/Cargo.lock @@ -56,7 +56,7 @@ dependencies = [ "rand_core 0.5.1", "rust_decimal", "serde", - "sha2", + "sha2 0.10.0", "sparse-merkle-tree", "tempfile", "tendermint", @@ -99,7 +99,7 @@ dependencies = [ "ibc", "ibc-proto", "serde_json", - "sha2", + "sha2 0.10.0", "tempfile", "tendermint", "test-log", @@ -272,7 +272,7 @@ dependencies = [ "cfg-if 0.1.10", "constant_time_eq", "crypto-mac", - "digest", + "digest 0.9.0", ] [[package]] @@ -285,6 +285,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" +dependencies = [ + "generic-array", +] + [[package]] name = "block-padding" version = "0.2.1" @@ -566,6 +575,15 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "crypto-common" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d6b536309245c849479fba3da410962a43ed8e51c26b729208ec0ac2798d0" +dependencies = [ + "generic-array", +] + [[package]] name = "crypto-mac" version = "0.8.0" @@ -583,7 +601,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" dependencies = [ "byteorder", - "digest", + "digest 0.9.0", "rand_core 0.5.1", "subtle", "zeroize", @@ -655,6 +673,17 @@ dependencies = [ "generic-array", ] +[[package]] +name = "digest" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b" +dependencies = [ + "block-buffer 0.10.0", + "crypto-common", + "generic-array", +] + [[package]] name = "dynasm" version = "1.1.0" @@ -702,7 +731,7 @@ dependencies = [ "rand 0.7.3", "serde", "serde_bytes", - "sha2", + "sha2 0.9.8", "zeroize", ] @@ -1065,7 +1094,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "sha2", + "sha2 0.9.8", "subtle-encoding", "tendermint", "tendermint-light-client", @@ -1099,7 +1128,7 @@ dependencies = [ "hex", "prost", "ripemd160", - "sha2", + "sha2 0.9.8", "sha3", "sp-std", ] @@ -1817,8 +1846,8 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eca4ecc81b7f313189bf73ce724400a07da2a6dac19588b03c8bd76a2dcc251" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "opaque-debug", ] @@ -1992,21 +2021,32 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" dependencies = [ - "block-buffer", + "block-buffer 0.9.0", "cfg-if 1.0.0", "cpufeatures", - "digest", + "digest 0.9.0", "opaque-debug", ] +[[package]] +name = "sha2" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d964dd36bb15bcf2f2b35694c072feab74969a54f2bbeec7a2d725d2bdcb6" +dependencies = [ + "cfg-if 1.0.0", + "cpufeatures", + "digest 0.10.1", +] + [[package]] name = "sha3" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "keccak", "opaque-debug", ] @@ -2068,7 +2108,7 @@ dependencies = [ "borsh", "cfg-if 1.0.0", "ics23", - "sha2", + "sha2 0.9.8", ] [[package]] @@ -2167,7 +2207,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_repr", - "sha2", + "sha2 0.9.8", "signature", "subtle", "subtle-encoding", diff --git a/wasm/wasm_source/Cargo.toml b/wasm/wasm_source/Cargo.toml index 928c94645d..69fb7e4663 100644 --- a/wasm/wasm_source/Cargo.toml +++ b/wasm/wasm_source/Cargo.toml @@ -37,7 +37,7 @@ wee_alloc = "0.4.5" anoma_tests = {path = "../../tests"} proptest = "1.0.0" tracing = "0.1.29" -tracing-subscriber = {version = "0.2.25", default-features = false, features = ["env-filter", "fmt"]} +tracing-subscriber = {version = "=0.2.25", default-features = false, features = ["env-filter", "fmt"]} [patch.crates-io] tendermint = {git = "https://github.com/heliaxdev/tendermint-rs", branch = "yuji/rebase_v0.23.0"} From 8add8ef35727d8119596ef1c545ec82c0228c505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Wed, 29 Dec 2021 12:04:34 +0100 Subject: [PATCH 7/7] apps: remove unused dep winapi --- Cargo.lock | 1 - apps/Cargo.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5715de7d12..30f39e5015 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -210,7 +210,6 @@ dependencies = [ "tracing-log 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "tracing-subscriber", "websocket", - "winapi 0.3.9", ] [[package]] diff --git a/apps/Cargo.toml b/apps/Cargo.toml index 9cf1e3dd4d..a309e0df42 100644 --- a/apps/Cargo.toml +++ b/apps/Cargo.toml @@ -142,7 +142,6 @@ tracing = "0.1.29" tracing-log = "0.1.2" tracing-subscriber = "=0.2.25" websocket = "0.26.2" -winapi = "0.3.9" [dev-dependencies] anoma = {path = "../shared", default-features = false, features = ["testing", "wasm-runtime"]}