diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f56fcc0..8038104 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,6 @@ jobs: build: runs-on: ubuntu-latest env: - RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"' RUST_LOG: info steps: - uses: styfle/cancel-workflow-action@0.12.1 diff --git a/Cargo.lock b/Cargo.lock index ddb4fe1..4de6ab0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -498,7 +498,7 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.63", "time 0.3.36", ] @@ -510,8 +510,8 @@ checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", - "synstructure 0.13.1", + "syn 2.0.89", + "synstructure", ] [[package]] @@ -522,7 +522,7 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -576,26 +576,6 @@ dependencies = [ "pin-project-lite 0.2.14", ] -[[package]] -name = "async-compatibility-layer" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32dd1dfd4a05a197583e51036d9615f04a4d851089dc119ee965d440d0bcaa39" -dependencies = [ - "async-lock 3.4.0", - "async-std", - "async-trait", - "color-eyre", - "console-subscriber 0.2.0", - "flume", - "futures", - "tokio", - "tokio-stream", - "tracing", - "tracing-error", - "tracing-subscriber 0.3.18", -] - [[package]] name = "async-dup" version = "1.2.4" @@ -619,18 +599,6 @@ dependencies = [ "slab", ] -[[package]] -name = "async-fs" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06" -dependencies = [ - "async-lock 2.8.0", - "autocfg", - "blocking", - "futures-lite 1.13.0", -] - [[package]] name = "async-global-executor" version = "2.4.1" @@ -731,21 +699,10 @@ checksum = "9e9e7a929bd34c68a82d58a4de7f86fffdaf97fb2af850162a7bb19dd7269b33" dependencies = [ "async-std", "native-tls", - "thiserror", + "thiserror 1.0.63", "url", ] -[[package]] -name = "async-net" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0434b1ed18ce1cf5769b8ac540e33f01fa9471058b5e89da9e06f3c882a8c12f" -dependencies = [ - "async-io 1.13.0", - "blocking", - "futures-lite 1.13.0", -] - [[package]] name = "async-process" version = "1.8.1" @@ -823,21 +780,6 @@ dependencies = [ "wasm-bindgen-futures", ] -[[package]] -name = "async-std-resolver" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc3b454643291f9a4a3bbdb35fa62efa4ba7be5ea13fe243e3be4352182ff4b8" -dependencies = [ - "async-std", - "async-trait", - "futures-io", - "futures-util", - "hickory-resolver", - "pin-utils", - "socket2 0.5.7", -] - [[package]] name = "async-stream" version = "0.3.5" @@ -857,7 +799,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -881,13 +823,13 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.82" +version = "0.1.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a27b8a3a6e1a44fa4c8baf1f653e4172e81486d4941f2237e20dc2d0cf4ddff1" +checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -1177,6 +1119,12 @@ version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +[[package]] +name = "byte-slice-cast" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" + [[package]] name = "bytecheck" version = "0.6.12" @@ -1216,18 +1164,18 @@ dependencies = [ [[package]] name = "capnp" -version = "0.19.6" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de71387912cac7dd3cb7c219e09628411620a18061bba58c71453c26ae7bf66a" +checksum = "bce4e2d41c16cf9188f47ca4d59fdcdca1f33705af211bdb41f0afbd3442f8b5" dependencies = [ "embedded-io", ] [[package]] name = "capnpc" -version = "0.19.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75ba30e0f08582d53c2f3710cf4bb65ff562614b1ba86906d7391adffe189ec" +checksum = "1aa3d5f01e69ed11656d2c7c47bf34327ea9bfb5c85c7de787fcd7b6c5e45b61" dependencies = [ "capnp", ] @@ -1253,12 +1201,11 @@ dependencies = [ [[package]] name = "cdn-broker" version = "0.4.0" -source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.4.7#5406fde54e61058428a7b55e1a98b699f0f606f1" +source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.5.6#9409763dbcb726e43218c3c4cfde91c7d5de6a52" dependencies = [ - "async-std", "cdn-proto", "clap", - "console-subscriber 0.3.0", + "console-subscriber", "dashmap", "derivative", "jf-signature", @@ -1277,11 +1224,11 @@ dependencies = [ [[package]] name = "cdn-client" version = "0.4.0" -source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.4.7#5406fde54e61058428a7b55e1a98b699f0f606f1" +source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.5.6#9409763dbcb726e43218c3c4cfde91c7d5de6a52" dependencies = [ - "async-std", "cdn-proto", "clap", + "derive_more 1.0.0", "jf-signature", "parking_lot", "rand 0.8.5", @@ -1293,9 +1240,8 @@ dependencies = [ [[package]] name = "cdn-marshal" version = "0.4.0" -source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.4.7#5406fde54e61058428a7b55e1a98b699f0f606f1" +source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.5.6#9409763dbcb726e43218c3c4cfde91c7d5de6a52" dependencies = [ - "async-std", "cdn-proto", "clap", "jf-signature", @@ -1307,7 +1253,7 @@ dependencies = [ [[package]] name = "cdn-proto" version = "0.4.0" -source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.4.7#5406fde54e61058428a7b55e1a98b699f0f606f1" +source = "git+https://github.com/EspressoSystems/Push-CDN?tag=0.5.6#9409763dbcb726e43218c3c4cfde91c7d5de6a52" dependencies = [ "anyhow", "ark-serialize", @@ -1315,6 +1261,7 @@ dependencies = [ "capnp", "capnpc", "derivative", + "derive_more 1.0.0", "jf-signature", "kanal", "lazy_static", @@ -1330,7 +1277,7 @@ dependencies = [ "rustls 0.23.12", "rustls-pki-types", "sqlx", - "thiserror", + "thiserror 1.0.63", "tokio", "tokio-rustls", "tracing", @@ -1397,7 +1344,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -1406,33 +1353,6 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" -[[package]] -name = "color-eyre" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55146f5e46f237f7423d74111267d4597b59b0dad0ffaf7303bce9945d843ad5" -dependencies = [ - "backtrace", - "color-spantrace", - "eyre", - "indenter", - "once_cell", - "owo-colors", - "tracing-error", -] - -[[package]] -name = "color-spantrace" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd6be1b2a7e382e2b98b43b2adcca6bb0e465af0bdd38123873ae61eb17a72c2" -dependencies = [ - "once_cell", - "owo-colors", - "tracing-core", - "tracing-error", -] - [[package]] name = "colorchoice" version = "1.0.2" @@ -1500,19 +1420,6 @@ dependencies = [ "yaml-rust", ] -[[package]] -name = "console-api" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd326812b3fd01da5bb1af7d340d0d555fd3d4b641e7f1dfcf5962a902952787" -dependencies = [ - "futures-core", - "prost", - "prost-types", - "tonic 0.10.2", - "tracing-core", -] - [[package]] name = "console-api" version = "0.7.0" @@ -1522,32 +1429,8 @@ dependencies = [ "futures-core", "prost", "prost-types", - "tonic 0.11.0", - "tracing-core", -] - -[[package]] -name = "console-subscriber" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7481d4c57092cd1c19dd541b92bdce883de840df30aa5d03fd48a3935c01842e" -dependencies = [ - "console-api 0.6.0", - "crossbeam-channel", - "crossbeam-utils", - "futures-task", - "hdrhistogram", - "humantime", - "prost-types", - "serde", - "serde_json", - "thread_local", - "tokio", - "tokio-stream", - "tonic 0.10.2", - "tracing", + "tonic", "tracing-core", - "tracing-subscriber 0.3.18", ] [[package]] @@ -1556,7 +1439,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "31c4cc54bae66f7d9188996404abdf7fdfa23034ef8e43478c8810828abad758" dependencies = [ - "console-api 0.7.0", + "console-api", "crossbeam-channel", "crossbeam-utils", "futures-task", @@ -1569,7 +1452,7 @@ dependencies = [ "thread_local", "tokio", "tokio-stream", - "tonic 0.11.0", + "tonic", "tracing", "tracing-core", "tracing-subscriber 0.3.18", @@ -1828,27 +1711,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", -] - -[[package]] -name = "custom_debug" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89e0ae2c2a42be29595d05c50e3ce6096c0698a97e021c3289790f0750cc8e2" -dependencies = [ - "custom_debug_derive", -] - -[[package]] -name = "custom_debug_derive" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08a9f3941234c9f62ceaa2782974827749de9b0a8a6487275a278da068e1baf7" -dependencies = [ - "proc-macro2", - "syn 1.0.109", - "synstructure 0.12.6", + "syn 2.0.89", ] [[package]] @@ -1872,7 +1735,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -1883,7 +1746,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -1934,7 +1797,7 @@ checksum = "5060bb0febb73fa907273f8a7ed17ab4bf831d585eac835b28ec24a1e2460956" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -1991,7 +1854,7 @@ checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -2012,7 +1875,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -2022,7 +1885,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4abae7035bf79b9877b779505d8cf3749285b80c43941eda66604841889451dc" dependencies = [ "derive_builder_core", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -2035,7 +1898,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version 0.4.1", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -2055,7 +1918,8 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", + "unicode-xid", ] [[package]] @@ -2123,7 +1987,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -2159,11 +2023,6 @@ version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" -[[package]] -name = "dyn-clone" -version = "1.0.17" -source = "git+https://github.com/dtolnay/dyn-clone?tag=1.0.17#51bf8816be5a73e38b59fd4d9dda2bc18e9c2429" - [[package]] name = "ed25519" version = "2.2.3" @@ -2228,7 +2087,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -2257,11 +2116,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "espresso-systems-common" -version = "0.4.1" -source = "git+https://github.com/espressosystems/espresso-systems-common?tag=0.4.1#2e889e878866c2a5cce1daaab947f7c93d5811ae" - [[package]] name = "etcetera" version = "0.8.0" @@ -2273,31 +2127,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "ethbloom" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c22d4b5885b6aa2fe5e8b9329fb8d232bf739e434e6b87347c63bdd00c120f60" -dependencies = [ - "crunchy", - "fixed-hash", - "impl-serde", - "tiny-keccak", -] - -[[package]] -name = "ethereum-types" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02d215cbf040552efcbe99a38372fe80ab9d00268e20012b79fcd0f073edd8ee" -dependencies = [ - "ethbloom", - "fixed-hash", - "impl-serde", - "primitive-types", - "uint", -] - [[package]] name = "event-listener" version = "2.5.3" @@ -2336,16 +2165,6 @@ dependencies = [ "pin-project-lite 0.2.14", ] -[[package]] -name = "eyre" -version = "0.6.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd915d99f24784cdc19fd37ef22b97e3ff0ae756c7e492e9fbfe897d61e2aec" -dependencies = [ - "indenter", - "once_cell", -] - [[package]] name = "fastrand" version = "1.9.0" @@ -2374,6 +2193,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", + "rand 0.8.5", "rustc-hex", "static_assertions", ] @@ -2396,7 +2216,6 @@ checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181" dependencies = [ "futures-core", "futures-sink", - "nanorand", "spin 0.9.8", ] @@ -2542,7 +2361,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -2632,10 +2451,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.11.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -2844,7 +2661,7 @@ dependencies = [ "once_cell", "rand 0.8.5", "socket2 0.5.7", - "thiserror", + "thiserror 1.0.63", "tinyvec", "tokio", "tracing", @@ -2867,7 +2684,7 @@ dependencies = [ "rand 0.8.5", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.63", "tokio", "tracing", ] @@ -2954,13 +2771,11 @@ dependencies = [ [[package]] name = "hotshot" version = "0.5.79" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ "anyhow", "async-broadcast", - "async-compatibility-layer", - "async-lock 2.8.0", - "async-std", + "async-lock 3.4.0", "async-trait", "bimap", "bincode", @@ -2970,30 +2785,27 @@ dependencies = [ "cdn-marshal", "chrono", "committable", - "custom_debug", "dashmap", "derive_more 1.0.0", "either", - "ethereum-types", "futures", "hotshot-task", "hotshot-task-impls", "hotshot-types", - "jf-signature", "libp2p-identity", "libp2p-networking", "lru 0.12.4", "num_enum", "parking_lot", "portpicker", + "primitive-types", "rand 0.8.5", "serde", "sha2 0.10.8", - "surf-disco", - "thiserror", "time 0.3.36", "tokio", "tracing", + "tracing-subscriber 0.3.18", "url", "utils", "vbs", @@ -3002,7 +2814,7 @@ dependencies = [ [[package]] name = "hotshot-builder-api" version = "0.1.7" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ "async-trait", "clap", @@ -3012,7 +2824,7 @@ dependencies = [ "hotshot-types", "serde", "tagged-base64", - "thiserror", + "thiserror 2.0.3", "tide-disco", "toml", "vbs", @@ -3020,12 +2832,10 @@ dependencies = [ [[package]] name = "hotshot-events-service" -version = "0.1.49" +version = "0.1.50" dependencies = [ "async-broadcast", - "async-compatibility-layer", "async-lock 2.8.0", - "async-std", "async-trait", "clap", "derivative", @@ -3034,6 +2844,7 @@ dependencies = [ "futures", "hotshot-example-types", "hotshot-types", + "libp2p-identity", "portpicker", "rand 0.8.5", "serde", @@ -3041,41 +2852,34 @@ dependencies = [ "surf-disco", "tagged-base64", "tide-disco", + "tokio", "toml", "tracing", + "tracing-test", "vbs", ] [[package]] name = "hotshot-example-types" version = "0.5.79" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ "anyhow", - "async-broadcast", - "async-compatibility-layer", - "async-lock 2.8.0", - "async-std", + "async-lock 3.4.0", "async-trait", - "bitvec", "committable", - "either", - "ethereum-types", - "futures", "hotshot", - "hotshot-builder-api", - "hotshot-task", "hotshot-task-impls", "hotshot-types", + "jf-vid", "rand 0.8.5", "reqwest", "serde", "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 2.0.3", "time 0.3.36", "tokio", - "tracing", "url", "vbs", ] @@ -3083,12 +2887,9 @@ dependencies = [ [[package]] name = "hotshot-task" version = "0.5.79" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ - "anyhow", "async-broadcast", - "async-compatibility-layer", - "async-std", "async-trait", "futures", "tokio", @@ -3099,17 +2900,13 @@ dependencies = [ [[package]] name = "hotshot-task-impls" version = "0.5.79" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ "anyhow", "async-broadcast", - "async-compatibility-layer", - "async-lock 2.8.0", - "async-std", + "async-lock 3.4.0", "async-trait", "bincode", - "bitvec", - "cdn-proto", "chrono", "committable", "either", @@ -3117,14 +2914,14 @@ dependencies = [ "hotshot-builder-api", "hotshot-task", "hotshot-types", - "jf-signature", "jf-vid", + "lru 0.12.4", "rand 0.8.5", "serde", "sha2 0.10.8", "surf-disco", "tagged-base64", - "thiserror", + "thiserror 2.0.3", "time 0.3.36", "tokio", "tracing", @@ -3137,7 +2934,7 @@ dependencies = [ [[package]] name = "hotshot-types" version = "0.1.11" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ "anyhow", "ark-bn254", @@ -3146,43 +2943,38 @@ dependencies = [ "ark-serialize", "ark-srs", "ark-std", - "async-compatibility-layer", - "async-lock 2.8.0", - "async-std", + "async-lock 3.4.0", "async-trait", "bincode", "bitvec", "blake3", - "cdn-proto", "clap", "committable", - "custom_debug", - "derivative", + "derive_more 1.0.0", "digest 0.10.7", "displaydoc", - "dyn-clone 1.0.17 (git+https://github.com/dtolnay/dyn-clone?tag=1.0.17)", + "dyn-clone", "either", - "espresso-systems-common", - "ethereum-types", "futures", "jf-pcs", "jf-signature", "jf-utils", "jf-vid", "lazy_static", - "libp2p", + "libp2p-identity", "memoize", + "mnemonic", + "multiaddr", + "primitive-types", "rand 0.8.5", "rand_chacha 0.3.1", - "reqwest", "serde", "serde-inline-default", "serde_bytes", "serde_json", "sha2 0.10.8", - "surf-disco", "tagged-base64", - "thiserror", + "thiserror 2.0.3", "time 0.3.36", "tokio", "toml", @@ -3484,7 +3276,6 @@ dependencies = [ "ipnet", "log", "rtnetlink", - "smol", "system-configuration 0.5.1", "tokio", "windows", @@ -3509,6 +3300,15 @@ dependencies = [ "xmltree", ] +[[package]] +name = "impl-codec" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" +dependencies = [ + "parity-scale-codec", +] + [[package]] name = "impl-serde" version = "0.4.0" @@ -3518,6 +3318,17 @@ dependencies = [ "serde", ] +[[package]] +name = "impl-trait-for-tuples" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", +] + [[package]] name = "include_dir" version = "0.7.4" @@ -3537,12 +3348,6 @@ dependencies = [ "quote", ] -[[package]] -name = "indenter" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" - [[package]] name = "indexmap" version = "1.9.3" @@ -3744,7 +3549,7 @@ dependencies = [ "derivative", "displaydoc", "downcast-rs", - "dyn-clone 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", + "dyn-clone", "hashbrown 0.14.5", "itertools 0.12.1", "jf-utils", @@ -3779,8 +3584,8 @@ dependencies = [ [[package]] name = "jf-signature" -version = "0.1.0" -source = "git+https://github.com/EspressoSystems/jellyfish?tag=0.4.5#7d71dbeff14f1a501b0b0dc391f1dffa1b8374fb" +version = "0.2.0" +source = "git+https://github.com/EspressoSystems/jellyfish?tag=jf-signature-v0.2.0#ca160ce3452b560cad512b750a742a87c48c5881" dependencies = [ "ark-bls12-381", "ark-bn254", @@ -3951,7 +3756,7 @@ dependencies = [ "multiaddr", "pin-project", "rw-stream-sink", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -4021,7 +3826,7 @@ dependencies = [ "rw-stream-sink", "serde", "smallvec", - "thiserror", + "thiserror 1.0.63", "tracing", "unsigned-varint 0.8.0", "void", @@ -4034,7 +3839,6 @@ version = "0.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d17cbcf7160ff35c3e8e560de4a068fe9d6cb777ea72840e48eb76ff9576c4b6" dependencies = [ - "async-std-resolver", "async-trait", "futures", "hickory-resolver", @@ -4095,7 +3899,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec 0.3.1", "smallvec", - "thiserror", + "thiserror 1.0.63", "tracing", "void", ] @@ -4116,7 +3920,7 @@ dependencies = [ "rand 0.8.5", "serde", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.63", "tracing", "zeroize", ] @@ -4145,7 +3949,7 @@ dependencies = [ "serde", "sha2 0.10.8", "smallvec", - "thiserror", + "thiserror 1.0.63", "tracing", "uint", "void", @@ -4157,8 +3961,6 @@ version = "0.45.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49007d9a339b3e1d7eeebc4d67c05dbf23d300b7d091193ec2d3f26802d7faf2" dependencies = [ - "async-io 2.3.4", - "async-std", "data-encoding", "futures", "hickory-proto", @@ -4195,20 +3997,16 @@ dependencies = [ [[package]] name = "libp2p-networking" version = "0.5.79" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ "anyhow", - "async-compatibility-layer", - "async-lock 2.8.0", - "async-std", "async-trait", "bincode", "blake3", "cbor4ii", - "custom_debug", "delegate", "derive_builder", - "either", + "derive_more 1.0.0", "futures", "hotshot-types", "lazy_static", @@ -4216,16 +4014,11 @@ dependencies = [ "libp2p-identity", "libp2p-swarm-derive", "pin-project", - "portpicker", "rand 0.8.5", "serde", - "serde_bytes", - "serde_json", - "thiserror", "tokio", - "tokio-stream", "tracing", - "void", + "tracing-subscriber 0.3.18", ] [[package]] @@ -4234,7 +4027,6 @@ version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c67296ad4e092e23f92aea3d2bdb6f24eab79c0929ed816dfb460ea2f4567d2b" dependencies = [ - "async-std", "bytes", "futures", "futures-timer", @@ -4248,7 +4040,7 @@ dependencies = [ "ring 0.17.8", "rustls 0.23.12", "socket2 0.5.7", - "thiserror", + "thiserror 1.0.63", "tokio", "tracing", ] @@ -4281,7 +4073,6 @@ version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80cae6cb75f89dbca53862f9ebe0b9f463aa7b302762fcfaafb9e51dcc9b0f7e" dependencies = [ - "async-std", "either", "fnv", "futures", @@ -4309,7 +4100,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -4318,7 +4109,6 @@ version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b2460fc2748919adff99ecbc1aab296e4579e41f374fb164149bd2c9e529d4c" dependencies = [ - "async-io 1.13.0", "futures", "futures-timer", "if-watch", @@ -4344,7 +4134,7 @@ dependencies = [ "ring 0.17.8", "rustls 0.23.12", "rustls-webpki 0.101.7", - "thiserror", + "thiserror 1.0.63", "x509-parser", "yasna", ] @@ -4460,7 +4250,7 @@ checksum = "b435d7dd476416a905f9634dff8c330cee8d3168fdd1fbd472a17d1a75c00c3e" dependencies = [ "libc", "neli", - "thiserror", + "thiserror 1.0.63", "windows-sys 0.48.0", ] @@ -4562,7 +4352,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -4729,15 +4519,6 @@ dependencies = [ "unsigned-varint 0.7.2", ] -[[package]] -name = "nanorand" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3" -dependencies = [ - "getrandom 0.2.15", -] - [[package]] name = "native-tls" version = "0.2.12" @@ -4815,7 +4596,7 @@ dependencies = [ "anyhow", "byteorder", "paste", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -4829,7 +4610,7 @@ dependencies = [ "log", "netlink-packet-core", "netlink-sys", - "thiserror", + "thiserror 1.0.63", "tokio", ] @@ -4839,7 +4620,6 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "416060d346fbaf1f23f9512963e3e878f1a78e707cb699ba9215761754244307" dependencies = [ - "async-io 1.13.0", "bytes", "futures", "libc", @@ -4969,7 +4749,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -5025,7 +4805,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -5069,10 +4849,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] -name = "owo-colors" -version = "3.5.0" +name = "parity-scale-codec" +version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" +checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" +dependencies = [ + "arrayvec", + "bitvec", + "byte-slice-cast", + "impl-trait-for-tuples", + "parity-scale-codec-derive", + "serde", +] + +[[package]] +name = "parity-scale-codec-derive" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8781a75c6205af67215f382092b6e0a4ff3734798523e69073d4bcd294ec767b" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.89", +] [[package]] name = "parking" @@ -5147,7 +4947,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd53dff83f26735fdc1ca837098ccf133605d794cdae66acfc2bfac3ec809d95" dependencies = [ "memchr", - "thiserror", + "thiserror 1.0.63", "ucd-trie", ] @@ -5171,7 +4971,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -5202,7 +5002,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -5340,6 +5140,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b34d9fd68ae0b74a41b21c03c2f62847aa0ffea044eee893b4c140b37e244e2" dependencies = [ "fixed-hash", + "impl-codec", "impl-serde", "uint", ] @@ -5384,9 +5185,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] @@ -5403,7 +5204,7 @@ dependencies = [ "memchr", "parking_lot", "protobuf", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -5426,7 +5227,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -5449,7 +5250,7 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -5511,7 +5312,7 @@ dependencies = [ "asynchronous-codec 0.6.2", "bytes", "quick-protobuf", - "thiserror", + "thiserror 1.0.63", "unsigned-varint 0.7.2", ] @@ -5524,7 +5325,7 @@ dependencies = [ "asynchronous-codec 0.7.0", "bytes", "quick-protobuf", - "thiserror", + "thiserror 1.0.63", "unsigned-varint 0.8.0", ] @@ -5534,8 +5335,6 @@ version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c7c5fdde3cdae7203427dc4f0a68fe0ed09833edc525a03456b153b79828684" dependencies = [ - "async-io 2.3.4", - "async-std", "bytes", "futures-io", "pin-project-lite 0.2.14", @@ -5544,7 +5343,7 @@ dependencies = [ "rustc-hash", "rustls 0.23.12", "socket2 0.5.7", - "thiserror", + "thiserror 1.0.63", "tokio", "tracing", ] @@ -5561,7 +5360,7 @@ dependencies = [ "rustc-hash", "rustls 0.23.12", "slab", - "thiserror", + "thiserror 1.0.63", "tinyvec", "tracing", ] @@ -5713,9 +5512,9 @@ dependencies = [ [[package]] name = "redis" -version = "0.26.1" +version = "0.27.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e902a69d09078829137b4a5d9d082e0490393537badd7c91a3d69d14639e115f" +checksum = "81cccf17a692ce51b86564334614d72dcae1def0fd5ecebc9f02956da74352b5" dependencies = [ "arc-swap", "async-trait", @@ -5729,7 +5528,7 @@ dependencies = [ "pin-project-lite 0.2.14", "ryu", "tokio", - "tokio-retry", + "tokio-retry2", "tokio-util", "url", ] @@ -5751,7 +5550,7 @@ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ "getrandom 0.2.15", "libredox", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -5973,13 +5772,12 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "322c53fd76a18698f1c27381d58091de3a043d356aa5bd0d510608b565f469a0" dependencies = [ - "async-global-executor", "futures", "log", "netlink-packet-route", "netlink-proto", "nix", - "thiserror", + "thiserror 1.0.63", "tokio", ] @@ -6251,7 +6049,7 @@ checksum = "b3acbd21cb24261fc36f595b38d3b34d0ff4e31a6b42edd6a43387d27c5787c8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -6271,7 +6069,7 @@ checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -6303,7 +6101,7 @@ checksum = "c7715380eec75f029a4ef7de39a9200e0a63823176b759d055b613f5a87df6a6" dependencies = [ "percent-encoding", "serde", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -6354,7 +6152,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -6539,23 +6337,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "smol" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13f2b548cd8447f8de0fdf1c592929f70f4fc7039a05e47404b0d096ec6987a1" -dependencies = [ - "async-channel 1.9.0", - "async-executor", - "async-fs", - "async-io 1.13.0", - "async-lock 2.8.0", - "async-net", - "async-process", - "blocking", - "futures-lite 1.13.0", -] - [[package]] name = "snafu" version = "0.8.4" @@ -6574,7 +6355,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -6677,7 +6458,7 @@ dependencies = [ "sha2 0.10.8", "smallvec", "sqlformat", - "thiserror", + "thiserror 1.0.63", "time 0.3.36", "tokio", "tokio-stream", @@ -6695,7 +6476,7 @@ dependencies = [ "quote", "sqlx-core", "sqlx-macros-core", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -6718,7 +6499,7 @@ dependencies = [ "sqlx-mysql", "sqlx-postgres", "sqlx-sqlite", - "syn 2.0.77", + "syn 2.0.89", "tempfile", "tokio", "url", @@ -6761,7 +6542,7 @@ dependencies = [ "smallvec", "sqlx-core", "stringprep", - "thiserror", + "thiserror 1.0.63", "time 0.3.36", "tracing", "whoami", @@ -6800,7 +6581,7 @@ dependencies = [ "smallvec", "sqlx-core", "stringprep", - "thiserror", + "thiserror 1.0.63", "time 0.3.36", "tracing", "whoami", @@ -6927,7 +6708,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -7046,9 +6827,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.77" +version = "2.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e" dependencies = [ "proc-macro2", "quote", @@ -7070,18 +6851,6 @@ dependencies = [ "futures-core", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "synstructure" version = "0.13.1" @@ -7090,7 +6859,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -7186,7 +6955,16 @@ version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.63", +] + +[[package]] +name = "thiserror" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +dependencies = [ + "thiserror-impl 2.0.3", ] [[package]] @@ -7197,7 +6975,18 @@ checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", ] [[package]] @@ -7407,9 +7196,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.40.0" +version = "1.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" dependencies = [ "backtrace", "bytes", @@ -7417,7 +7206,6 @@ dependencies = [ "mio", "parking_lot", "pin-project-lite 0.2.14", - "signal-hook-registry", "socket2 0.5.7", "tokio-macros", "tracing", @@ -7442,7 +7230,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -7456,10 +7244,10 @@ dependencies = [ ] [[package]] -name = "tokio-retry" -version = "0.3.0" +name = "tokio-retry2" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f57eb36ecbe0fc510036adff84824dd3c24bb781e21bfa67b69d556aa85214f" +checksum = "903934dba1c4c2f2e9cb460ef10b5695e0b0ecad3bf9ee7c8675e540c5e8b2d1" dependencies = [ "pin-project", "rand 0.8.5", @@ -7535,33 +7323,6 @@ dependencies = [ "winnow", ] -[[package]] -name = "tonic" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e" -dependencies = [ - "async-stream", - "async-trait", - "axum", - "base64 0.21.7", - "bytes", - "h2 0.3.26", - "http 0.2.12", - "http-body 0.4.6", - "hyper 0.14.30", - "hyper-timeout", - "percent-encoding", - "pin-project", - "prost", - "tokio", - "tokio-stream", - "tower", - "tower-layer", - "tower-service", - "tracing", -] - [[package]] name = "tonic" version = "0.11.0" @@ -7641,7 +7402,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -7666,16 +7427,6 @@ dependencies = [ "tracing-subscriber 0.3.18", ] -[[package]] -name = "tracing-error" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d686ec1c0f384b1277f097b2f279a2ecc11afe8c133c1aabf036a27cb4cd206e" -dependencies = [ - "tracing", - "tracing-subscriber 0.3.18", -] - [[package]] name = "tracing-futures" version = "0.2.5" @@ -7737,6 +7488,27 @@ dependencies = [ "tracing-serde", ] +[[package]] +name = "tracing-test" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "557b891436fe0d5e0e363427fc7f217abf9ccd510d5136549847bdcbcd011d68" +dependencies = [ + "tracing-core", + "tracing-subscriber 0.3.18", + "tracing-test-macro", +] + +[[package]] +name = "tracing-test-macro" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04659ddb06c87d233c566112c1c9c5b9e98256d9af50ec3bc9c8327f873a7568" +dependencies = [ + "quote", + "syn 2.0.89", +] + [[package]] name = "try-lock" version = "0.2.5" @@ -7759,7 +7531,7 @@ dependencies = [ "native-tls", "rand 0.8.5", "sha-1", - "thiserror", + "thiserror 1.0.63", "url", "utf-8", ] @@ -7929,7 +7701,7 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "utils" version = "0.5.79" -source = "git+https://github.com/EspressoSystems/HotShot.git?tag=0.5.80#77fab988f9a18defa6df3b022a9837061919c14a" +source = "git+https://github.com/EspressoSystems/HotShot.git?tag=rc-0.5.82#ecfd22a4b3d20b7cf89282b172f178ab2ebf81a4" dependencies = [ "tracing", ] @@ -8106,7 +7878,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", "wasm-bindgen-shared", ] @@ -8140,7 +7912,7 @@ checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -8485,7 +8257,7 @@ dependencies = [ "oid-registry", "ring 0.17.8", "rusticata-macros", - "thiserror", + "thiserror 1.0.63", "time 0.3.36", ] @@ -8540,7 +8312,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] [[package]] @@ -8560,5 +8332,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.89", ] diff --git a/Cargo.toml b/Cargo.toml index cb63674..d5aaa6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,33 +1,32 @@ [package] name = "hotshot-events-service" -version = "0.1.49" +version = "0.1.56" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] async-broadcast = "0.7" -async-compatibility-layer = { version = "1.1", default-features = false, features = [ - "logging-utils", -] } async-lock = "2.8" -async-std = { version = "1", features = ["attributes"] } async-trait = "0.1" clap = { version = "4.4", features = ["derive", "env"] } derivative = "2.2" derive_more = "0.99" either = { version = "1.12", features = ["serde"] } futures = "0.3" -hotshot-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.80" } +hotshot-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.82" } +libp2p-identity = { version = "0.2", features = ["serde"] } rand = "0.8.5" serde = { version = "1.0", features = ["derive"] } snafu = "0.8" tagged-base64 = "0.4" tide-disco = "0.9" +tokio = { version = "1.41", features = ["macros"] } toml = "0.8" tracing = "0.1" +tracing-test = "0.2" vbs = "0.1.4" [dev-dependencies] -hotshot-example-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.80" } +hotshot-example-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.82" } portpicker = "0.1.1" surf-disco = "0.9" diff --git a/flake.nix b/flake.nix index 7d16e08..868ba35 100644 --- a/flake.nix +++ b/flake.nix @@ -108,7 +108,6 @@ RUST_SRC_PATH = "${rustToolchain}/lib/rustlib/src/rust/library"; RUST_BACKTRACE = 1; RUST_LOG = "info"; - RUSTFLAGS=" --cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\" --cfg hotshot_example"; in { checks = { pre-commit-check = pre-commit-hooks.lib.${system}.run { diff --git a/src/events_source.rs b/src/events_source.rs index 7898204..4f905bc 100644 --- a/src/events_source.rs +++ b/src/events_source.rs @@ -1,7 +1,6 @@ use std::{marker::PhantomData, sync::Arc}; use async_broadcast::{broadcast, InactiveReceiver, Sender as BroadcastSender}; -use async_std::future; use async_trait::async_trait; use futures::{ future::BoxFuture, @@ -137,7 +136,9 @@ impl EventsSource for EventsStreamer { if let Some(filter) = filter { receiver - .filter(move |event| future::ready(filter.should_broadcast(&event.as_ref().event))) + .filter(move |event| { + futures::future::ready(filter.should_broadcast(&event.as_ref().event)) + }) .boxed() } else { receiver.boxed() diff --git a/src/test.rs b/src/test.rs index 3313bff..be5dde1 100644 --- a/src/test.rs +++ b/src/test.rs @@ -2,11 +2,7 @@ mod tests { use std::sync::Arc; - use async_compatibility_layer::{ - art::async_spawn, - logging::{setup_backtrace, setup_logging}, - }; - use async_std::sync::RwLock; + use async_lock::RwLock; use futures::stream::StreamExt; use hotshot_example_types::node_types::TestTypes; use hotshot_types::{ @@ -22,6 +18,8 @@ mod tests { }; use surf_disco::Client; use tide_disco::{App, Url}; + use tokio::spawn; + use tracing_test::traced_test; use vbs::version::{StaticVersion, StaticVersionType}; //use crate::fetch::Fetch; @@ -38,11 +36,10 @@ mod tests { } } - #[async_std::test] + #[tokio::test] + #[traced_test] async fn test_no_active_receiver() { tracing::info!("Starting test_no_active_receiver"); - setup_logging(); - setup_backtrace(); let port = portpicker::pick_unused_port().expect("Could not find an open port"); let api_url = Url::parse(format!("http://localhost:{port}").as_str()).unwrap(); @@ -65,9 +62,9 @@ mod tests { app.register_module("hotshot_events", hotshot_events_api) .expect("Failed to register hotshot events API"); - async_spawn(app.serve(api_url, StaticVersion::<0, 1>::instance())); + spawn(app.serve(api_url, StaticVersion::<0, 1>::instance())); let total_count = 5; - let send_handle = async_spawn(async move { + let send_handle = spawn(async move { let mut send_count = 0; loop { let tx_event = generate_event(send_count); @@ -85,14 +82,12 @@ mod tests { } }); - send_handle.await; + send_handle.await.unwrap(); } - #[async_std::test] + #[tokio::test] + #[traced_test] async fn test_startup_info_endpoint() { - setup_logging(); - setup_backtrace(); - let port = portpicker::pick_unused_port().expect("Could not find an open port"); let api_url = Url::parse(format!("http://localhost:{port}").as_str()).unwrap(); @@ -126,7 +121,7 @@ mod tests { app.register_module("api", hotshot_events_api) .expect("Failed to register hotshot events API"); - async_spawn(app.serve(api_url.clone(), StaticVersion::<0, 1>::instance())); + spawn(app.serve(api_url.clone(), StaticVersion::<0, 1>::instance())); let client = Client::>::new( format!("http://localhost:{}/api", port).parse().unwrap(), @@ -143,11 +138,10 @@ mod tests { assert_eq!(startup_info.non_staked_node_count, non_staked_node_count); } - #[async_std::test] + #[tokio::test] + #[traced_test] async fn test_event_stream() { tracing::info!("Starting test_event_stream"); - setup_logging(); - setup_backtrace(); let port = portpicker::pick_unused_port().expect("Could not find an open port"); let api_url = Url::parse(format!("http://localhost:{port}").as_str()).unwrap(); @@ -171,7 +165,7 @@ mod tests { app.register_module("hotshot_events", hotshot_events_api) .expect("Failed to register hotshot events API"); - async_spawn(app.serve(api_url, StaticVersion::<0, 1>::instance())); + spawn(app.serve(api_url, StaticVersion::<0, 1>::instance())); // Start Client 1 let client_1 = Client::>::new( @@ -213,7 +207,7 @@ mod tests { let total_count = 5; // wait for these events to receive on client 1 - let receive_handle_1 = async_spawn(async move { + let receive_handle_1 = spawn(async move { let mut receive_count = 0; while let Some(event) = events_1.next().await { let event = event.unwrap(); @@ -233,7 +227,7 @@ mod tests { }); // wait for these events to receive on client 2 - let receive_handle_2 = async_spawn(async move { + let receive_handle_2 = spawn(async move { let mut receive_count = 0; while let Some(event) = events_2.next().await { let event = event.unwrap(); @@ -252,7 +246,7 @@ mod tests { tracing::info!("stream ended"); }); - let send_handle = async_spawn(async move { + let send_handle = spawn(async move { let mut send_count = 0; loop { let tx_event = generate_event(send_count); @@ -271,8 +265,8 @@ mod tests { } }); - send_handle.await; - receive_handle_1.await; - receive_handle_2.await; + send_handle.await.unwrap(); + receive_handle_1.await.unwrap(); + receive_handle_2.await.unwrap(); } }