From dbbe095b461d4a93549d4cf87faf841dabf74ad0 Mon Sep 17 00:00:00 2001 From: Philip Date: Mon, 7 Mar 2022 14:17:17 +0200 Subject: [PATCH] fix: update metadata size calculation to use FixedSet.iter() This is solving the following TODO: implement iter for FixedSet to avoid the clone Iter() was implemented for FixedSet in the newest version of `tari_utilities` so this PR updates the main repo to point to the `main` branch of `tari_utilities` and then uses this iter() implementation to do what the TODO suggests which is to to avoid the clone by using the iterator. --- Cargo.lock | 706 +++++++++--------- applications/tari_app_grpc/Cargo.toml | 2 +- applications/tari_app_utilities/Cargo.toml | 2 +- applications/tari_base_node/Cargo.toml | 2 +- .../tari_collectibles/src-tauri/Cargo.toml | 2 +- applications/tari_console_wallet/Cargo.toml | 2 +- .../tari_merge_mining_proxy/Cargo.toml | 2 +- applications/tari_mining_node/Cargo.toml | 2 +- .../tari_stratum_transcoder/Cargo.toml | 2 +- applications/test_faucet/Cargo.toml | 2 +- base_layer/common_types/Cargo.toml | 2 +- base_layer/core/Cargo.toml | 2 +- .../transaction_initializer.rs | 15 +- base_layer/key_manager/src/error.rs | 4 + base_layer/key_manager/src/mnemonic.rs | 6 +- base_layer/mmr/Cargo.toml | 2 +- base_layer/p2p/Cargo.toml | 2 +- base_layer/tari_stratum_ffi/Cargo.toml | 2 +- base_layer/wallet/Cargo.toml | 2 +- base_layer/wallet_ffi/Cargo.toml | 2 +- comms/dht/Cargo.toml | 2 +- comms/dht/src/store_forward/error.rs | 4 +- dan_layer/core/Cargo.toml | 2 +- dan_layer/storage_sqlite/Cargo.toml | 2 +- infrastructure/storage/Cargo.toml | 2 +- 25 files changed, 407 insertions(+), 368 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9ae766e3dc..d6b10cbcc7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -123,9 +123,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.53" +version = "1.0.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0" +checksum = "159bb86af3a200e19a068f4224eae4c8bb2d0fa054c7e5d1cacd5cef95e684cd" [[package]] name = "arc-swap" @@ -172,13 +172,13 @@ checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" [[package]] name = "ashpd" -version = "0.2.2" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7915e26e0786f91768d23de32afafa4ee5e2ea76be21c0ecd8e14441543c1655" +checksum = "084a8df12135f75ec7501c7c593b14621d1da962d222127fe72fb6de116aa9eb" dependencies = [ "enumflags2", "futures 0.3.21", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_repr", "zbus", @@ -241,9 +241,9 @@ dependencies = [ [[package]] name = "async-lock" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6a8ea61bf9947a1007c5cada31e647dbc77b103c679858150003ba697ea798b" +checksum = "e97a171d191782fba31bb902b14ad94e24a68145032b7eedf871ab0bc0d077b6" dependencies = [ "event-listener", ] @@ -282,9 +282,9 @@ dependencies = [ [[package]] name = "async-task" -version = "4.1.0" +version = "4.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d306121baf53310a3fd342d88dc0824f6bbeace68347593658525565abee8" +checksum = "30696a84d817107fc028e049980e09d5e140e8da8f1caeb17e8e950658a3cea9" [[package]] name = "async-trait" @@ -315,10 +315,10 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58aeb089fb698e06db8089971c7ee317ab9644bade33383f63631437b03aafb6" dependencies = [ - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] @@ -367,13 +367,22 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "autotools" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ec8e3c65baca58d892ae26d20bbe34713d20d0b02fd0ced4254f256aebbbb80" +checksum = "c8138adefca3e5d2e73bfba83bd6eeaf904b26a7ac1b4a19892cfe16cc7e1701" dependencies = [ "cc", ] +[[package]] +name = "base58-monero" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4b40d07a9459c8d0d60cf7e7935748fae3f401263c38a8a120be6c0a2be566d" +dependencies = [ + "thiserror", +] + [[package]] name = "base58-monero" version = "0.3.2" @@ -519,7 +528,7 @@ dependencies = [ "cc", "cfg-if 1.0.0", "constant_time_eq", - "digest 0.10.2", + "digest 0.10.3", "rayon", ] @@ -629,8 +638,8 @@ dependencies = [ "serde_json", "serde_urlencoded", "thiserror", - "tokio 1.16.1", - "tokio-util", + "tokio 1.17.0", + "tokio-util 0.6.9", "url 2.2.2", "winapi 0.3.9", ] @@ -706,9 +715,9 @@ dependencies = [ [[package]] name = "bytemuck" -version = "1.7.3" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439989e6b8c38d1b6570a384ef1e49c8848128f5a97f3914baef02920842712f" +checksum = "0e851ca7c24871e7336801608a4797d7376545b6928a10d32d75685687141ead" [[package]] name = "byteorder" @@ -766,9 +775,9 @@ checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" [[package]] name = "cairo-rs" -version = "0.15.1" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b869e97a87170f96762f9f178eae8c461147e722ba21dd8814105bf5716bf14a" +checksum = "e8b14c80d8d1a02fa6d914b9d1afeeca9bc34257f8300d9696e1e331ae114223" dependencies = [ "bitflags 1.3.2", "cairo-sys-rs", @@ -783,9 +792,9 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c55d429bef56ac9172d25fecb85dc8068307d17acd74b377866b7a1ef25d3c8" dependencies = [ - "glib-sys 0.15.5", + "glib-sys 0.15.6", "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] @@ -846,9 +855,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.72" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" dependencies = [ "jobserver", ] @@ -899,6 +908,15 @@ dependencies = [ "smallvec", ] +[[package]] +name = "cfg-expr" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e068cb2806bbc15b439846dc16c5f89f8599f2c3e4d73d4449d38f9b2f0b6c5" +dependencies = [ + "smallvec", +] + [[package]] name = "cfg-if" version = "0.1.10" @@ -1024,9 +1042,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.0.14" +version = "3.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b63edc3f163b3c71ec8aa23f9bd6070f77edbf3d1d198b164afa90ff00e4ec62" +checksum = "ced1892c55c910c1219e98d6fc8d71f6bddba7905866ce740066d8bfea859312" dependencies = [ "atty", "bitflags 1.3.2", @@ -1034,7 +1052,7 @@ dependencies = [ "os_str_bytes", "strsim 0.10.0", "termcolor", - "textwrap 0.14.2", + "textwrap 0.15.0", ] [[package]] @@ -1467,11 +1485,12 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-common" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4600d695eb3f6ce1cd44e6e291adceb2cc3ab12f20a33777ecd0bf6eba34e06" +checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" dependencies = [ "generic-array 0.14.5", + "typenum", ] [[package]] @@ -1584,9 +1603,9 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "3.2.0" +version = "3.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" +checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0" dependencies = [ "byteorder", "digest 0.9.0", @@ -1689,9 +1708,9 @@ checksum = "3ee2393c4a91429dffb4bedf19f4d6abf27d8a732c8ce4980305d782e5426d57" [[package]] name = "decimal-rs" -version = "0.1.30" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48a7947182397ed0b0471fa980a42d91bbc3e74c2fc33d44239da6c04ff338fd" +checksum = "f0638686e813b3c8ed99d87e555da3b3ef86423bb400f4cdfd7e71323facd279" dependencies = [ "ethnum", "fast-float", @@ -1845,9 +1864,9 @@ dependencies = [ [[package]] name = "digest" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cb780dce4f9a8f5c087362b3a4595936b2019e7c8b30f2c3e9a7e94e6ae9837" +checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" dependencies = [ "block-buffer 0.10.2", "crypto-common", @@ -1925,9 +1944,9 @@ checksum = "6907e25393cdcc1f4f3f513d9aac1e840eb1cc341a0fccb01171f7d14d10b946" [[package]] name = "ed25519" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74e1069e39f1454367eb2de793ed062fac4c35c2934b76a81d90dd9abcd28816" +checksum = "eed12bbf7b5312f8da1c2722bc06d8c6b12c2d86a7fb35a194c7f3e6fc2bbe39" dependencies = [ "signature", ] @@ -1975,11 +1994,11 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" [[package]] name = "enum-as-inner" -version = "0.3.3" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595" +checksum = "21cdad81446a7f7dc43f6a77409efeb9733d2fa65553efef6018ef257c959b73" dependencies = [ - "heck 0.3.3", + "heck 0.4.0", "proc-macro2", "quote", "syn", @@ -2078,9 +2097,9 @@ dependencies = [ [[package]] name = "ethnum" -version = "1.0.4" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f58da196a1fc8f14cb51f373f504efc66c434c577b777c2cd30d6fad16e4822" +checksum = "63b40347dcad92b4dfeb9765c41c48503416daddf6dba55b74614dc035a43ed2" [[package]] name = "event-listener" @@ -2111,9 +2130,9 @@ dependencies = [ [[package]] name = "fd-lock" -version = "3.0.3" +version = "3.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcef756dea9cf3db5ce73759cf0467330427a786b47711b8d6c97620d718ceb9" +checksum = "02ecad9808e0596f8956d14f7fa868f996290bd01c8d7329d6e5bc2bb76adf8f" dependencies = [ "cfg-if 1.0.0", "rustix", @@ -2138,7 +2157,7 @@ checksum = "975ccf83d8d9d0d84682850a38c8169027be83368805971cc4f238c2b245bc98" dependencies = [ "cfg-if 1.0.0", "libc", - "redox_syscall 0.2.10", + "redox_syscall 0.2.11", "winapi 0.3.9", ] @@ -2149,7 +2168,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c" dependencies = [ "byteorder", - "rand 0.8.4", + "rand 0.8.5", "rustc-hex", "static_assertions", ] @@ -2413,9 +2432,9 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "gdk" -version = "0.15.2" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614258e81ec35ed8770e64a0838f3a47f95b398bc51e724d3b3fa09c1ee0f8d5" +checksum = "a6e05c1f572ab0e1f15be94217f0dc29088c248b14f792a5ff0af0d84bcda9e8" dependencies = [ "bitflags 1.3.2", "cairo-rs", @@ -2429,9 +2448,9 @@ dependencies = [ [[package]] name = "gdk-pixbuf" -version = "0.15.4" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73aa2f5de1b45710da90a55863276667dc3a3264aaf6a2aeace62bb015244d49" +checksum = "d8750501d75f318c2ec0314701bc8403901303210def80bafd13f6b6059a3f45" dependencies = [ "bitflags 1.3.2", "gdk-pixbuf-sys", @@ -2446,11 +2465,11 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "413424d9818621fa3cfc8a3a915cdb89a7c3c507d56761b4ec83a9a98e587171" dependencies = [ - "gio-sys 0.15.5", - "glib-sys 0.15.5", + "gio-sys 0.15.6", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] @@ -2461,13 +2480,13 @@ checksum = "32e7a08c1e8f06f4177fb7e51a777b8c1689f743a7bc11ea91d44d2226073a88" dependencies = [ "cairo-sys-rs", "gdk-pixbuf-sys", - "gio-sys 0.15.5", - "glib-sys 0.15.5", + "gio-sys 0.15.6", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", "pango-sys", "pkg-config", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] @@ -2477,9 +2496,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4b7f8c7a84b407aa9b143877e267e848ff34106578b64d1e0a24bf550716178" dependencies = [ "gdk-sys", - "glib-sys 0.15.5", + "glib-sys 0.15.6", "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", "x11", ] @@ -2550,9 +2569,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" +checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -2583,15 +2602,15 @@ dependencies = [ [[package]] name = "gio" -version = "0.15.5" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59105fa464928adf56b159c8d980cc11fbfbe414befb904caac5163d383049bf" +checksum = "96efd8a1c00d890f6b45671916e165b5e43ccec61957d443aff6d7e44f62d348" dependencies = [ "bitflags 1.3.2", "futures-channel", "futures-core", "futures-io", - "gio-sys 0.15.5", + "gio-sys 0.15.6", "glib", "libc", "once_cell", @@ -2613,14 +2632,14 @@ dependencies = [ [[package]] name = "gio-sys" -version = "0.15.5" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f0bc4cfc9ebcdd05cc5057bc51b99c32f8f9bf246274f6a556ffd27279f8fe3" +checksum = "1d0fa5052773f5a56b8ae47dab09d040f5d9ce1311f4f99006e16e9a08269296" dependencies = [ - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", "winapi 0.3.9", ] @@ -2641,9 +2660,9 @@ dependencies = [ [[package]] name = "glib" -version = "0.15.5" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41dcfbdb6cc6c02aee163339465d8a40d6f3f64c3a43f729a4195f0e153338b7" +checksum = "aa570813c504bdf7539a9400180c2dd4b789a819556fb86da7226d7d1b037b49" dependencies = [ "bitflags 1.3.2", "futures-channel", @@ -2651,7 +2670,7 @@ dependencies = [ "futures-executor", "futures-task", "glib-macros", - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", "once_cell", @@ -2661,13 +2680,13 @@ dependencies = [ [[package]] name = "glib-macros" -version = "0.15.3" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e58b262ff65ef771003873cea8c10e0fe854f1c508d48d62a4111a1ff163f7d1" +checksum = "41bfd8d227dead0829ac142454e97531b93f576d0805d779c42bfd799c65c572" dependencies = [ "anyhow", "heck 0.4.0", - "proc-macro-crate 1.1.0", + "proc-macro-crate 1.1.3", "proc-macro-error", "proc-macro2", "quote", @@ -2686,12 +2705,12 @@ dependencies = [ [[package]] name = "glib-sys" -version = "0.15.5" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa1d4e1a63d8574541e5b92931e4e669ddc87ffa85d58e84e631dba13ad2e10c" +checksum = "f4366377bd56697de8aaee24e673c575d2694d72e7756324ded2b0428829a7b8" dependencies = [ "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] @@ -2730,16 +2749,16 @@ version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df6859463843c20cf3837e3a9069b6ab2051aeeadf4c899d33344f4aea83189a" dependencies = [ - "glib-sys 0.15.5", + "glib-sys 0.15.6", "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] name = "gtk" -version = "0.15.3" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7978eaec05bea63947c801d29a21372f2ed39aec0bf56bf7725d3599094675e" +checksum = "5f2d1326b36af927fe46ae2f89a8fec38c6f0d279ebc5ef07ffeeabb70300bfc" dependencies = [ "atk", "bitflags 1.3.2", @@ -2768,22 +2787,22 @@ dependencies = [ "cairo-sys-rs", "gdk-pixbuf-sys", "gdk-sys", - "gio-sys 0.15.5", - "glib-sys 0.15.5", + "gio-sys 0.15.6", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", "pango-sys", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] name = "gtk3-macros" -version = "0.15.1" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c891188af69e77a1e8a0b1746fbd03b9b396e7d34d518c5331b15950259f541" +checksum = "24f518afe90c23fba585b2d7697856f9e6a7bbc62f65588035e66f6afb01a2e9" dependencies = [ "anyhow", - "proc-macro-crate 1.1.0", + "proc-macro-crate 1.1.3", "proc-macro-error", "proc-macro2", "quote", @@ -2804,8 +2823,8 @@ dependencies = [ "http", "indexmap", "slab", - "tokio 1.16.1", - "tokio-util", + "tokio 1.17.0", + "tokio-util 0.6.9", "tracing", ] @@ -2817,15 +2836,15 @@ checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" [[package]] name = "hdrhistogram" -version = "6.3.4" +version = "7.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d331ebcdbca4acbefe5da8c3299b2e246f198a8294cc5163354e743398b89d" +checksum = "31672b7011be2c4f7456c4ddbcb40e7e9a4a9fad8efe49a6ebaf5f307d0109c0" dependencies = [ - "base64 0.10.1", + "base64 0.13.0", "byteorder", - "crossbeam-channel 0.3.9", + "crossbeam-channel 0.5.2", "flate2", - "nom 4.2.3", + "nom 7.1.0", "num-traits 0.2.14", ] @@ -2928,9 +2947,9 @@ dependencies = [ [[package]] name = "http-range" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eee9694f83d9b7c09682fdb32213682939507884e5bcf227be9aff5d644b90dc" +checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573" [[package]] name = "httparse" @@ -2977,7 +2996,7 @@ dependencies = [ "itoa 1.0.1", "pin-project-lite 0.2.8", "socket2", - "tokio 1.16.1", + "tokio 1.17.0", "tower-service", "tracing", "want", @@ -2991,7 +3010,7 @@ checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" dependencies = [ "hyper", "pin-project-lite 0.2.8", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-io-timeout", ] @@ -3004,7 +3023,7 @@ dependencies = [ "bytes 1.1.0", "hyper", "native-tls", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-native-tls", ] @@ -3018,7 +3037,7 @@ dependencies = [ "hex", "hyper", "pin-project 1.0.10", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -3136,18 +3155,15 @@ checksum = "48dc51180a9b377fd75814d0cc02199c20f8e99433d6762f650d39cdbbd3b56f" [[package]] name = "integer-encoding" -version = "3.0.2" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90c11140ffea82edce8dcd74137ce9324ec24b3cf0175fc9d7e29164da9915b8" +checksum = "0e85a1509a128c855368e135cffcde7eac17d8e1083f41e2b98c58bc1a5074be" [[package]] name = "io-lifetimes" -version = "0.4.4" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ef6787e7f0faedc040f95716bdd0e62bcfcf4ba93da053b62dea2691c13864" -dependencies = [ - "winapi 0.3.9", -] +checksum = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6" [[package]] name = "iovec" @@ -3160,9 +3176,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9" +checksum = "35e70ee094dc02fd9c13fdad4940090f22dbd6ac7c9e7094a46cf0232a50bc7c" [[package]] name = "itertools" @@ -3211,7 +3227,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "905fbb87419c5cde6e3269537e4ea7d46431f3008c5d057e915ef3f115e7793c" dependencies = [ - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", "system-deps 5.0.0", @@ -3339,9 +3355,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.117" +version = "0.2.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c" +checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" [[package]] name = "libgit2-sys" @@ -3424,7 +3440,7 @@ dependencies = [ "libtor-derive", "libtor-sys", "log", - "rand 0.8.4", + "rand 0.8.5", "sha1", ] @@ -3454,9 +3470,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66" +checksum = "df2bf61678a0a521c3f7daf815d2e6717d85a272a7dcd02c9768272b32bd1e2a" dependencies = [ "cc", "libc", @@ -3482,9 +3498,9 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" [[package]] name = "linux-raw-sys" -version = "0.0.37" +version = "0.0.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95f5690fef754d905294c56f7ac815836f2513af966aa47f2e07ac79be07827f" +checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" [[package]] name = "lmdb-zero" @@ -3571,7 +3587,7 @@ dependencies = [ "serde 1.0.136", "serde_json", "tracing", - "tracing-subscriber 0.3.8", + "tracing-subscriber 0.3.9", ] [[package]] @@ -3712,14 +3728,20 @@ checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" [[package]] name = "mime_guess" -version = "2.0.3" +version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212" +checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef" dependencies = [ "mime", "unicase", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" version = "0.3.7" @@ -3771,6 +3793,19 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "mio" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2" +dependencies = [ + "libc", + "log", + "miow 0.3.7", + "ntapi", + "winapi 0.3.9", +] + [[package]] name = "miow" version = "0.2.2" @@ -3798,7 +3833,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a7038b6ba92588189248fbb4f8b2744d4918a9732f826e414814a50c168dca3" dependencies = [ - "base58-monero", + "base58-monero 0.3.2", "curve25519-dalek", "fixed-hash", "hex", @@ -3844,7 +3879,7 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "424f6e86263cd5294cbd7f1e95746b95aca0e0d66bff31e5a40d6baa87b4aa99" dependencies = [ - "proc-macro-crate 1.1.0", + "proc-macro-crate 1.1.3", "proc-macro-error", "proc-macro2", "quote", @@ -3889,16 +3924,23 @@ dependencies = [ "thiserror", ] +[[package]] +name = "ndk-context" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e3c5cc68637e21fe8f077f6a1c9e0b9ca495bb74895226b476310f613325884" + [[package]] name = "ndk-glue" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3e9e94628f24e7a3cb5b96a2dc5683acd9230bf11991c2a1677b87695138420" +checksum = "9b1454575120e3265d2442222299c711ace58ba417532ee4f0fc71b860016b93" dependencies = [ "lazy_static 1.4.0", "libc", "log", "ndk", + "ndk-context", "ndk-macro", "ndk-sys", ] @@ -4000,6 +4042,17 @@ dependencies = [ "version_check 0.9.4", ] +[[package]] +name = "nom" +version = "7.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b1d11e1ef389c76fe5b81bcaf2ea32cf88b62bc494e19f493d0b30e7a930109" +dependencies = [ + "memchr", + "minimal-lexical", + "version_check 0.9.4", +] + [[package]] name = "notify-rust" version = "4.5.6" @@ -4136,20 +4189,20 @@ dependencies = [ [[package]] name = "num_enum" -version = "0.5.6" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "720d3ea1055e4e4574c0c0b0f8c3fd4f24c4cdaf465948206dea090b57b526ad" +checksum = "cf5395665662ef45796a4ff5486c5d41d29e0c09640af4c5f17fd94ee2c119c9" dependencies = [ "num_enum_derive", ] [[package]] name = "num_enum_derive" -version = "0.5.6" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d992b768490d7fe0d8586d9b5745f6c49f557da6d81dc982b1d167ad4edbb21" +checksum = "3b0498641e53dd6ac1a4f22547548caa6864cc4933784319cd1775271c5a46ce" dependencies = [ - "proc-macro-crate 1.1.0", + "proc-macro-crate 1.1.3", "proc-macro2", "quote", "syn", @@ -4171,7 +4224,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" dependencies = [ "malloc_buf", - "objc_exception", ] [[package]] @@ -4185,15 +4237,6 @@ dependencies = [ "objc_id", ] -[[package]] -name = "objc_exception" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" -dependencies = [ - "cc", -] - [[package]] name = "objc_id" version = "0.1.1" @@ -4205,9 +4248,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" +checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9" [[package]] name = "opaque-debug" @@ -4223,9 +4266,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "open" -version = "2.0.2" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176ee4b630d174d2da8241336763bb459281dddc0f4d87f72c3b1efc9a6109b7" +checksum = "9213e7b66aa06a7722828ee2980c1adff22a3922b582baaa1e62e30ca2a6c018" dependencies = [ "pathdiff", "winapi 0.3.9", @@ -4287,9 +4330,9 @@ dependencies = [ "lazy_static 1.4.0", "percent-encoding 2.1.0", "pin-project 1.0.10", - "rand 0.8.4", + "rand 0.8.5", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", ] @@ -4323,7 +4366,7 @@ dependencies = [ "reqwest", "thiserror", "thrift", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -4376,9 +4419,9 @@ dependencies = [ [[package]] name = "os_pipe" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e3492ebca331b895fe23ed427dce2013d9b2e00c45964f12040b0db38b8ab27" +checksum = "2c92f2b54f081d635c77e7120862d48db8e91f7f21cef23ab1b4fe9971c59f55" dependencies = [ "libc", "winapi 0.3.9", @@ -4405,9 +4448,9 @@ dependencies = [ [[package]] name = "pango" -version = "0.15.2" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79211eff430c29cc38c69e0ab54bc78fa1568121ca9737707eee7f92a8417a94" +checksum = "78c7420fc01a390ec200da7395b64d705f5d82fe03e5d0708aee422c46538be7" dependencies = [ "bitflags 1.3.2", "glib", @@ -4422,10 +4465,10 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7022c2fb88cd2d9d55e1a708a8c53a3ae8678234c4a54bf623400aeb7f31fac2" dependencies = [ - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "libc", - "system-deps 6.0.1", + "system-deps 6.0.2", ] [[package]] @@ -4478,7 +4521,7 @@ dependencies = [ "cfg-if 1.0.0", "instant", "libc", - "redox_syscall 0.2.10", + "redox_syscall 0.2.11", "smallvec", "winapi 0.3.9", ] @@ -4708,7 +4751,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ "phf_shared 0.10.0", - "rand 0.8.4", + "rand 0.8.5", ] [[package]] @@ -4921,9 +4964,9 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "1.1.0" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ebace6889caf889b4d3f76becee12e90353f2b8c7d875534a71e5742f8f6f83" +checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a" dependencies = [ "thiserror", "toml 0.5.8", @@ -5098,20 +5141,19 @@ dependencies = [ "libc", "rand_chacha 0.2.2", "rand_core 0.5.1", - "rand_hc 0.2.0", + "rand_hc", "rand_pcg", ] [[package]] name = "rand" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha 0.3.1", "rand_core 0.6.3", - "rand_hc 0.3.1", ] [[package]] @@ -5164,7 +5206,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" dependencies = [ - "getrandom 0.2.4", + "getrandom 0.2.5", ] [[package]] @@ -5176,15 +5218,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_hc" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" -dependencies = [ - "rand_core 0.6.3", -] - [[package]] name = "rand_os" version = "0.1.3" @@ -5280,9 +5313,9 @@ checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" [[package]] name = "redox_syscall" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" +checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c" dependencies = [ "bitflags 1.3.2", ] @@ -5304,8 +5337,8 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ - "getrandom 0.2.4", - "redox_syscall 0.2.10", + "getrandom 0.2.5", + "redox_syscall 0.2.11", ] [[package]] @@ -5370,7 +5403,7 @@ dependencies = [ "serde 1.0.136", "serde_json", "serde_urlencoded", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-native-tls", "url 2.2.2", "wasm-bindgen", @@ -5388,7 +5421,7 @@ dependencies = [ "ashpd", "block", "dispatch", - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "gtk-sys", "js-sys", @@ -5529,14 +5562,14 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.5", + "semver 1.0.6", ] [[package]] name = "rustix" -version = "0.32.1" +version = "0.33.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cee647393af53c750e15dcbf7781cdd2e550b246bde76e46c326e7ea3c73773" +checksum = "a9466f25b92a648960ac1042fd3baa6b0bf285e60f754d7e5070770c813a177a" dependencies = [ "bitflags 1.3.2", "errno", @@ -5548,9 +5581,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.20.2" +version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d37e5e2290f3e040b594b1a9e04377c2c671f1a1cfd9bfdef82106ac1c113f84" +checksum = "4fbfeb8d0ddb84706bc597a5574ab8912817c52a397f819e5b614e2265206921" dependencies = [ "log", "ring", @@ -5560,9 +5593,9 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9" +checksum = "1ee86d63972a7c661d1536fefe8c3c8407321c3df668891286de28abcd087360" dependencies = [ "base64 0.13.0", ] @@ -5723,9 +5756,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0486718e92ec9a68fbed73bb5ef687d71103b142595b406835649bebd33f72c7" +checksum = "a4a3381e03edd24287172047536f20cabde766e2cd3e65e6b00fb3af51c4f38d" [[package]] name = "semver-parser" @@ -5809,9 +5842,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.78" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23c1ba4cf0efd44be32017709280b32d1cea5c3f1275c3b6d9e8bc54f758085" +checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95" dependencies = [ "itoa 1.0.1", "ryu", @@ -5950,7 +5983,7 @@ checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" dependencies = [ "cfg-if 1.0.0", "cpufeatures", - "digest 0.10.2", + "digest 0.10.3", ] [[package]] @@ -5974,13 +6007,13 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99c3bd8169c58782adad9290a9af5939994036b76187f7b4f0e6de91dbbfc0ec" +checksum = "55deaec60f81eefe3cce0dc50bda92d6d8e88f2a27df7c5033b42afeb1ed2676" dependencies = [ "cfg-if 1.0.0", "cpufeatures", - "digest 0.10.2", + "digest 0.10.3", ] [[package]] @@ -6080,9 +6113,9 @@ dependencies = [ [[package]] name = "siphasher" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a86232ab60fa71287d7f2ddae4a7073f6b7aac33631c3015abb556f08c6d0a3e" +checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" [[package]] name = "slab" @@ -6105,7 +6138,7 @@ dependencies = [ "aes-gcm 0.9.4", "blake2", "chacha20poly1305", - "rand 0.8.4", + "rand 0.8.5", "rand_core 0.6.3", "rustc_version 0.3.3", "sha2 0.9.9", @@ -6343,16 +6376,6 @@ dependencies = [ "unicode-xid", ] -[[package]] -name = "sys-info" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b3a0d0aba8bf96a0e1ddfdc352fc53b3df7f39318c71854910c3c4b024ae52c" -dependencies = [ - "cc", - "libc", -] - [[package]] name = "system-deps" version = "3.2.0" @@ -6386,11 +6409,11 @@ dependencies = [ [[package]] name = "system-deps" -version = "6.0.1" +version = "6.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad3a97fdef3daf935d929b3e97e5a6a680cd4622e40c2941ca0875d6566416f8" +checksum = "a1a45a1c4c9015217e12347f2a411b57ce2c4fc543913b14b6fe40483328e709" dependencies = [ - "cfg-expr 0.9.1", + "cfg-expr 0.10.2", "heck 0.4.0", "pkg-config", "toml 0.5.8", @@ -6399,9 +6422,9 @@ dependencies = [ [[package]] name = "tao" -version = "0.6.1" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "402f170c4da28cc3108d854c7567d6904c82fc0e30e5b69f2a6b3e48f8a4f705" +checksum = "6c4c62fc16d698750c5c918088c8134c63e8661e65efc608fe614236c59462f4" dependencies = [ "bitflags 1.3.2", "cairo-rs", @@ -6417,7 +6440,7 @@ dependencies = [ "gdkx11-sys", "gio", "glib", - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gtk", "instant", "lazy_static 1.4.0", @@ -6486,7 +6509,7 @@ dependencies = [ "futures 0.3.21", "json5", "log", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "structopt", "tari_common", @@ -6496,7 +6519,7 @@ dependencies = [ "tari_p2p", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -6537,7 +6560,7 @@ dependencies = [ "tari_shutdown", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tonic", "tracing", "tracing-opentelemetry", @@ -6555,7 +6578,7 @@ dependencies = [ "curve25519-dalek-ng", "digest 0.9.0", "merlin", - "rand 0.8.4", + "rand 0.8.5", "rand_core 0.6.3", "serde 1.0.136", "serde_derive", @@ -6575,7 +6598,7 @@ dependencies = [ "log", "prost", "prost-types", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_json", "structopt", @@ -6591,7 +6614,7 @@ dependencies = [ "tauri", "tauri-build", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tonic", "uuid", ] @@ -6637,12 +6660,12 @@ version = "0.28.1" dependencies = [ "digest 0.9.0", "lazy_static 1.4.0", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "tari_crypto", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -6671,7 +6694,7 @@ dependencies = [ "pin-project 1.0.10", "prost", "prost-types", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_derive", "serde_json", @@ -6685,9 +6708,9 @@ dependencies = [ "tari_test_utils 0.28.1", "tempfile", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", - "tokio-util", + "tokio-util 0.6.9", "tower", "tracing", "yamux", @@ -6719,7 +6742,7 @@ dependencies = [ "pin-project 0.4.29", "prost", "prost-types", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_derive", "tari_common", @@ -6733,7 +6756,7 @@ dependencies = [ "tari_utilities", "tempfile", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", "tower", ] @@ -6749,7 +6772,7 @@ dependencies = [ "syn", "tari_comms", "tari_test_utils 0.28.1", - "tokio 1.16.1", + "tokio 1.17.0", "tower-service", ] @@ -6766,7 +6789,7 @@ dependencies = [ "opentelemetry", "opentelemetry-jaeger", "qrcode", - "rand 0.8.4", + "rand 0.8.5", "regex", "rpassword", "rustyline", @@ -6788,7 +6811,7 @@ dependencies = [ "tari_utilities", "tari_wallet", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tonic", "tracing", "tracing-opentelemetry", @@ -6817,7 +6840,7 @@ dependencies = [ "fs2 0.3.0", "futures 0.3.21", "hex", - "integer-encoding 3.0.2", + "integer-encoding 3.0.3", "lmdb-zero", "log", "log-mdc", @@ -6827,7 +6850,7 @@ dependencies = [ "once_cell", "prost", "prost-types", - "rand 0.8.4", + "rand 0.8.5", "randomx-rs", "serde 1.0.136", "serde_json", @@ -6849,7 +6872,7 @@ dependencies = [ "tari_utilities", "tempfile", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tracing", "tracing-attributes", "uint", @@ -6858,7 +6881,7 @@ dependencies = [ [[package]] name = "tari_crypto" version = "0.12.0" -source = "git+https://github.com/tari-project/tari-crypto.git?branch=main#09cc52787272ced3a1a8c9f2edc1e0221f9d8faa" +source = "git+https://github.com/tari-project/tari-crypto.git?branch=main#1b74d944218587dd0fa60bc75db2eca1d5d7057d" dependencies = [ "base64 0.10.1", "blake2", @@ -6868,7 +6891,7 @@ dependencies = [ "digest 0.9.0", "lazy_static 1.4.0", "merlin", - "rand 0.8.4", + "rand 0.8.5", "rmp-serde", "serde 1.0.136", "serde_json", @@ -6904,7 +6927,7 @@ dependencies = [ "patricia_tree", "prost", "prost-types", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_json", "tari_common", @@ -6923,7 +6946,7 @@ dependencies = [ "tari_test_utils 0.8.1", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", ] @@ -6942,7 +6965,7 @@ dependencies = [ "tari_dan_core", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", ] @@ -6959,9 +6982,9 @@ dependencies = [ "console_error_panic_hook", "crc32fast", "digest 0.9.0", - "getrandom 0.2.4", + "getrandom 0.2.5", "js-sys", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_derive", "serde_json", @@ -6984,7 +7007,7 @@ dependencies = [ "env_logger 0.9.0", "futures 0.3.21", "log", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_json", "strum 0.23.0", @@ -6994,7 +7017,7 @@ dependencies = [ "tauri", "tauri-build", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tor-hash-passwd", ] @@ -7006,7 +7029,7 @@ dependencies = [ "log", "log4rs", "multiaddr", - "rand 0.8.4", + "rand 0.8.5", "tari_common", "tari_shutdown", "tempfile", @@ -7028,7 +7051,7 @@ dependencies = [ "hyper", "jsonrpc", "log", - "rand 0.8.4", + "rand 0.8.5", "reqwest", "serde 1.0.136", "serde_json", @@ -7041,7 +7064,7 @@ dependencies = [ "tari_crypto", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tonic", "tracing", "url 2.2.2", @@ -7058,7 +7081,7 @@ dependencies = [ "prometheus", "reqwest", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "warp", ] @@ -7075,7 +7098,7 @@ dependencies = [ "native-tls", "num_cpus", "prost-types", - "rand 0.8.4", + "rand 0.8.5", "reqwest", "serde 1.0.136", "serde_json", @@ -7088,7 +7111,7 @@ dependencies = [ "tari_crypto", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tonic", ] @@ -7102,7 +7125,7 @@ dependencies = [ "croaring", "digest 0.9.0", "log", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_json", "tari_crypto", @@ -7126,10 +7149,10 @@ dependencies = [ "openssl-sys", "pgp", "prost", - "rand 0.8.4", + "rand 0.8.5", "reqwest", "rustls", - "semver 1.0.5", + "semver 1.0.6", "serde 1.0.136", "serde_derive", "tari_common", @@ -7143,7 +7166,7 @@ dependencies = [ "tari_utilities", "tempfile", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", "tower", "tower-service", @@ -7163,7 +7186,7 @@ dependencies = [ "tari_shutdown", "tari_test_utils 0.28.1", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tower", "tower-service", ] @@ -7173,7 +7196,7 @@ name = "tari_shutdown" version = "0.28.1" dependencies = [ "futures 0.3.21", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -7183,7 +7206,7 @@ dependencies = [ "bincode", "lmdb-zero", "log", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_derive", "tari_utilities", @@ -7232,7 +7255,7 @@ dependencies = [ "tari_crypto", "tari_utilities", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tonic", "tonic-build", "tracing", @@ -7259,18 +7282,18 @@ version = "0.28.1" dependencies = [ "futures 0.3.21", "futures-test", - "rand 0.8.4", + "rand 0.8.5", "tari_shutdown", "tempfile", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] name = "tari_utilities" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22966aea452f806a83b75d59d54d34f638e48b94a1ea2b2e0efce9aacf532635" +source = "git+https://github.com/tari-project/tari_utilities.git?branch=main#d0acbf011841a47d1b55084db1d7c9096c54c1fe" dependencies = [ + "base58-monero 0.2.1", "base64 0.10.1", "bincode", "bitflags 1.3.2", @@ -7281,6 +7304,7 @@ dependencies = [ "serde 1.0.136", "serde_json", "thiserror", + "time 0.3.7", ] [[package]] @@ -7320,7 +7344,7 @@ dependencies = [ "tari_storage", "tari_test_utils 0.28.1", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", "tonic", ] @@ -7348,7 +7372,7 @@ dependencies = [ "log", "log4rs", "prost", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_json", "sha2 0.9.9", @@ -7370,7 +7394,7 @@ dependencies = [ "tari_utilities", "tempfile", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "tower", ] @@ -7385,7 +7409,7 @@ dependencies = [ "log", "log4rs", "openssl", - "rand 0.8.4", + "rand 0.8.5", "security-framework", "tari_common_types", "tari_comms", @@ -7401,19 +7425,20 @@ dependencies = [ "tari_wallet", "tempfile", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] name = "tauri" -version = "1.0.0-rc.2" +version = "1.0.0-rc.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3571de0bcfd1f4f7599cbb3fe42f28ea9f52c3e89914ff04eaba68b5ee36bb51" +checksum = "bb0c4a4ffd1f9b02cc3e974ce902f8132fb3d08ec6cce4ca193f97d921f5bce4" dependencies = [ + "anyhow", "attohttpc", "bincode", "cfg_aliases", - "clap 3.0.14", + "clap 3.1.5", "dirs-next 2.0.0", "either", "embed_plist", @@ -7431,11 +7456,11 @@ dependencies = [ "os_info", "os_pipe", "percent-encoding 2.1.0", - "rand 0.8.4", + "rand 0.8.5", "raw-window-handle", "regex", "rfd", - "semver 1.0.5", + "semver 1.0.6", "serde 1.0.136", "serde_json", "serde_repr", @@ -7449,7 +7474,7 @@ dependencies = [ "tauri-utils", "tempfile", "thiserror", - "tokio 1.16.1", + "tokio 1.17.0", "url 2.2.2", "uuid", "zip", @@ -7457,9 +7482,9 @@ dependencies = [ [[package]] name = "tauri-build" -version = "1.0.0-rc.2" +version = "1.0.0-rc.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4dab79d01b8e429cb5bd98d9da90cbc1bedbd87d536d16adcf269c584bf6ae0" +checksum = "855e47d8cfb2219fc14d2eed2c09bfb35f9ecd71a40ca2084aeeee2d23e0b60d" dependencies = [ "anyhow", "cargo_toml", @@ -7470,9 +7495,9 @@ dependencies = [ [[package]] name = "tauri-codegen" -version = "1.0.0-rc.1" +version = "1.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d06ecdbd6beaf7348259f82885742f013c0c96ac139445ec7c4b8050cd18349" +checksum = "eef4656d174ba982198266da0c016573fe6c7c760e4290f05c8c384fe180007e" dependencies = [ "base64 0.13.0", "blake3", @@ -7481,7 +7506,7 @@ dependencies = [ "regex", "serde 1.0.136", "serde_json", - "sha2 0.10.1", + "sha2 0.10.2", "tauri-utils", "thiserror", "uuid", @@ -7491,9 +7516,9 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "1.0.0-rc.1" +version = "1.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba9ab86a4e81b31b227800c120b452dae137754e06d75b75c41c06cd06d301e2" +checksum = "a0993f5a867e321d26200b2d6394cdf482bd6cc5a0e4691bcabf811544f51cd4" dependencies = [ "heck 0.4.0", "proc-macro2", @@ -7505,9 +7530,9 @@ dependencies = [ [[package]] name = "tauri-runtime" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c683b979ec4841b86048a282cd86afbc13b418a0f546904b27fad06e882ad5d7" +checksum = "851cd65e2c9df4dd70a4f9e115fb2441ac89f1c80df79de0c15a448b4acd7768" dependencies = [ "gtk", "http", @@ -7524,9 +7549,9 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec025e7c906451fd7ff9e46d106a2e1b5b73e48013d13d52ffce614212b63fdc" +checksum = "0184f95e065fb80afadf53f0a5f87a75af2da774d0524fe8cb2976fbec4a0bf2" dependencies = [ "gtk", "ico", @@ -7542,9 +7567,9 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "1.0.0-rc.1" +version = "1.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abcbfec197c4cb959376607ac2fd99cecca02bd6d52b794bd882959501e34533" +checksum = "0ad38ad698838886bf22ecb91c4b3d1ce178fdff7901ac7bff370103a4f51e59" dependencies = [ "ctor", "glob", @@ -7574,7 +7599,7 @@ dependencies = [ "cfg-if 1.0.0", "fastrand", "libc", - "redox_syscall 0.2.10", + "redox_syscall 0.2.11", "remove_dir_all", "winapi 0.3.9", ] @@ -7592,9 +7617,9 @@ dependencies = [ [[package]] name = "termcolor" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" +checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" dependencies = [ "winapi-util", ] @@ -7603,14 +7628,14 @@ dependencies = [ name = "test_faucet" version = "0.28.1" dependencies = [ - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_json", "tari_common_types", "tari_core", "tari_crypto", "tari_utilities", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -7624,9 +7649,9 @@ dependencies = [ [[package]] name = "textwrap" -version = "0.14.2" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80" +checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb" [[package]] name = "thin-slice" @@ -7766,18 +7791,19 @@ dependencies = [ [[package]] name = "tokio" -version = "1.16.1" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a" +checksum = "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee" dependencies = [ "bytes 1.1.0", "libc", "memchr", - "mio 0.7.14", + "mio 0.8.0", "num_cpus", "once_cell", "pin-project-lite 0.2.8", "signal-hook-registry", + "socket2", "tokio-macros", "winapi 0.3.9", ] @@ -7789,7 +7815,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" dependencies = [ "pin-project-lite 0.2.8", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -7810,7 +7836,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" dependencies = [ "native-tls", - "tokio 1.16.1", + "tokio 1.17.0", ] [[package]] @@ -7820,7 +7846,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a27d5f2b839802bd8267fa19b0530f5a08b9c08cd417976be2a65d130fe1c11b" dependencies = [ "rustls", - "tokio 1.16.1", + "tokio 1.17.0", "webpki 0.22.0", ] @@ -7832,8 +7858,8 @@ checksum = "50145484efff8818b5ccd256697f36863f587da82cf8b409c53adf1e840798e3" dependencies = [ "futures-core", "pin-project-lite 0.2.8", - "tokio 1.16.1", - "tokio-util", + "tokio 1.17.0", + "tokio-util 0.6.9", ] [[package]] @@ -7848,7 +7874,21 @@ dependencies = [ "futures-sink", "log", "pin-project-lite 0.2.8", - "tokio 1.16.1", + "tokio 1.17.0", +] + +[[package]] +name = "tokio-util" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64910e1b9c1901aaf5375561e35b9c057d95ff41a44ede043a03e09279eabaf1" +dependencies = [ + "bytes 1.1.0", + "futures-core", + "futures-sink", + "log", + "pin-project-lite 0.2.8", + "tokio 1.17.0", ] [[package]] @@ -7890,9 +7930,9 @@ dependencies = [ "pin-project 1.0.10", "prost", "prost-derive", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", - "tokio-util", + "tokio-util 0.6.9", "tower", "tower-layer", "tower-service", @@ -7920,16 +7960,16 @@ checksum = "8b83cd43a176c0c19d5db4401283e8f5c296b9c6c7fa29029de15cc445f26e12" dependencies = [ "hex", "hex-literal", - "rand 0.8.4", + "rand 0.8.5", "sha1", "thiserror", ] [[package]] name = "tower" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5651b5f6860a99bd1adb59dbfe1db8beb433e73709d9032b413a77e2fb7c066a" +checksum = "9a89fd63ad6adf737582df5db40d286574513c69a11dac5214dc3b5603d6713e" dependencies = [ "futures-core", "futures-util", @@ -7937,11 +7977,10 @@ dependencies = [ "indexmap", "pin-project 1.0.10", "pin-project-lite 0.2.8", - "rand 0.8.4", + "rand 0.8.5", "slab", - "tokio 1.16.1", - "tokio-stream", - "tokio-util", + "tokio 1.17.0", + "tokio-util 0.7.0", "tower-layer", "tower-service", "tracing", @@ -7961,9 +8000,9 @@ checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" [[package]] name = "tracing" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d8d93354fe2a8e50d5953f5ae2e47a3fc2ef03292e7ea46e3cc38f549525fb9" +checksum = "f6c650a8ef0cd2dd93736f033d21cbd1224c5a967aa0c258d00fcf7dafef9b9f" dependencies = [ "cfg-if 1.0.0", "log", @@ -8061,9 +8100,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74786ce43333fcf51efe947aed9718fbe46d5c7328ec3f1029e818083966d9aa" +checksum = "9e0ab7bdc962035a87fba73f3acca9b8a8d0034c2e6f60b84aeaaddddc155dce" dependencies = [ "ansi_term", "lazy_static 1.4.0", @@ -8134,21 +8173,21 @@ dependencies = [ "lazy_static 1.4.0", "log", "radix_trie", - "rand 0.8.4", + "rand 0.8.5", "ring", "rustls", "thiserror", "time 0.3.7", - "tokio 1.16.1", + "tokio 1.17.0", "trust-dns-proto", "webpki 0.22.0", ] [[package]] name = "trust-dns-proto" -version = "0.21.0-alpha.5" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df4689a56fb36e79b76d13f52056c116f1f014afb1bd330162f2d9dc08ef5405" +checksum = "2861b3ed517888174d13909e675c4e94b3291867512068be59d76533e4d1270c" dependencies = [ "async-trait", "cfg-if 1.0.0", @@ -8161,14 +8200,14 @@ dependencies = [ "ipnet", "lazy_static 1.4.0", "log", - "rand 0.8.4", + "rand 0.8.5", "ring", "rustls", "rustls-pemfile", "smallvec", "thiserror", "tinyvec", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-rustls", "url 2.2.2", "webpki 0.22.0", @@ -8361,7 +8400,7 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "getrandom 0.2.4", + "getrandom 0.2.5", "serde 1.0.136", ] @@ -8455,9 +8494,9 @@ dependencies = [ "serde 1.0.136", "serde_json", "serde_urlencoded", - "tokio 1.16.1", + "tokio 1.17.0", "tokio-stream", - "tokio-util", + "tokio-util 0.6.9", "tower-service", "tracing", ] @@ -8587,9 +8626,9 @@ dependencies = [ "gdk", "gdk-sys", "gio", - "gio-sys 0.15.5", + "gio-sys 0.15.6", "glib", - "glib-sys 0.15.5", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "gtk", "gtk-sys", @@ -8610,8 +8649,8 @@ dependencies = [ "cairo-sys-rs", "gdk-pixbuf-sys", "gdk-sys", - "gio-sys 0.15.5", - "glib-sys 0.15.5", + "gio-sys 0.15.6", + "glib-sys 0.15.6", "gobject-sys 0.15.5", "gtk-sys", "javascriptcore-rs-sys", @@ -8644,9 +8683,9 @@ dependencies = [ [[package]] name = "webview2-com" -version = "0.11.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1975ce3573344c099935fe3903f1708dac69efe8539f1efee3ae54d8f9315fbb" +checksum = "bb8e90ac2d9ce39cdb70017aaec641be09fbdd702b7b332b9896d053eb469524" dependencies = [ "webview2-com-macros", "webview2-com-sys", @@ -8667,9 +8706,9 @@ dependencies = [ [[package]] name = "webview2-com-sys" -version = "0.11.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a746838a94b7391f707209a246e3436d81d1e71832126a65a897d3ee5511040" +checksum = "92160310b3322397e4ff8a8285a7429d73a07a68fda44ee80879605b93e53f76" dependencies = [ "regex", "serde 1.0.136", @@ -8924,9 +8963,9 @@ dependencies = [ [[package]] name = "wry" -version = "0.13.1" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "194b2750d8fe10fef189af5e2ca09e56cb8c5458a365d2b32842b024351f58c9" +checksum = "9514586e5c964d30cc7123c9aea9880ff7b3cb1c43f6a1dc8703941eb72ac89f" dependencies = [ "cocoa", "core-graphics", @@ -8942,7 +8981,6 @@ dependencies = [ "once_cell", "serde 1.0.136", "serde_json", - "sys-info", "tao", "thiserror", "url 2.2.2", @@ -9029,7 +9067,7 @@ dependencies = [ "log", "nohash-hasher", "parking_lot 0.11.2", - "rand 0.8.4", + "rand 0.8.5", "static_assertions", ] @@ -9059,7 +9097,7 @@ dependencies = [ "nix", "once_cell", "ordered-stream", - "rand 0.8.4", + "rand 0.8.5", "serde 1.0.136", "serde_repr", "sha1", @@ -9076,7 +9114,7 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "36823cc10fddc3c6b19f048903262dacaf8274170e9a255784bdd8b4570a8040" dependencies = [ - "proc-macro-crate 1.1.0", + "proc-macro-crate 1.1.3", "proc-macro2", "quote", "regex", @@ -9105,9 +9143,9 @@ dependencies = [ [[package]] name = "zeroize_derive" -version = "1.3.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81e8f13fef10b63c06356d65d416b070798ddabcadc10d3ece0c5be9b3c7eddb" +checksum = "3f8f187641dad4f680d25c4bfc4225b418165984179f26ca76ec4fb6441d3a17" dependencies = [ "proc-macro2", "quote", @@ -9178,7 +9216,7 @@ version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c2cecc5a61c2a053f7f653a24cd15b3b0195d7f7ddb5042c837fb32e161fb7a" dependencies = [ - "proc-macro-crate 1.1.0", + "proc-macro-crate 1.1.3", "proc-macro2", "quote", "syn", diff --git a/applications/tari_app_grpc/Cargo.toml b/applications/tari_app_grpc/Cargo.toml index ee06b61255..b1aa200b14 100644 --- a/applications/tari_app_grpc/Cargo.toml +++ b/applications/tari_app_grpc/Cargo.toml @@ -12,7 +12,7 @@ tari_common_types = { version = "^0.28", path = "../../base_layer/common_types"} tari_core = { path = "../../base_layer/core"} tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } tari_comms = { path = "../../comms"} -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } chrono = { version = "0.4.19", default-features = false } prost = "0.9" diff --git a/applications/tari_app_utilities/Cargo.toml b/applications/tari_app_utilities/Cargo.toml index 73ca935a17..02f2dbca71 100644 --- a/applications/tari_app_utilities/Cargo.toml +++ b/applications/tari_app_utilities/Cargo.toml @@ -10,7 +10,7 @@ tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch tari_common = { path = "../../common" } tari_common_types = { path = "../../base_layer/common_types" } tari_p2p = { path = "../../base_layer/p2p", features = ["auto-update"] } -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } config = { version = "0.9.3" } futures = { version = "^0.3.16", default-features = false, features = ["alloc"] } diff --git a/applications/tari_base_node/Cargo.toml b/applications/tari_base_node/Cargo.toml index f1c9658186..c732c19c88 100644 --- a/applications/tari_base_node/Cargo.toml +++ b/applications/tari_base_node/Cargo.toml @@ -21,7 +21,7 @@ tari_mmr = { path = "../../base_layer/mmr", features = ["native_bitmap"] } tari_p2p = { path = "../../base_layer/p2p", features = ["auto-update"] } tari_service_framework = { path = "../../base_layer/service_framework" } tari_shutdown = { path = "../../infrastructure/shutdown" } -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } anyhow = "1.0.53" bincode = "1.3.1" diff --git a/applications/tari_collectibles/src-tauri/Cargo.toml b/applications/tari_collectibles/src-tauri/Cargo.toml index a097f083d2..578633fcfb 100644 --- a/applications/tari_collectibles/src-tauri/Cargo.toml +++ b/applications/tari_collectibles/src-tauri/Cargo.toml @@ -22,7 +22,7 @@ tari_common_types = { path = "../../../base_layer/common_types" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } tari_key_manager = { path = "../../../base_layer/key_manager" } tari_mmr = { path = "../../../base_layer/mmr"} -tari_utilities = "*" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } tari_dan_common_types = { path = "../../../dan_layer/common_types"} blake2 = "^0.9.0" diff --git a/applications/tari_console_wallet/Cargo.toml b/applications/tari_console_wallet/Cargo.toml index c5d58e139a..3dbd5465a6 100644 --- a/applications/tari_console_wallet/Cargo.toml +++ b/applications/tari_console_wallet/Cargo.toml @@ -17,7 +17,7 @@ tari_p2p = { path = "../../base_layer/p2p", features = ["auto-update"] } tari_app_grpc = { path = "../tari_app_grpc" } tari_shutdown = { path = "../../infrastructure/shutdown" } tari_key_manager = { path = "../../base_layer/key_manager" } -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } sha2 = "0.9.5" digest = "0.9.0" diff --git a/applications/tari_merge_mining_proxy/Cargo.toml b/applications/tari_merge_mining_proxy/Cargo.toml index f869d6450f..c37071927b 100644 --- a/applications/tari_merge_mining_proxy/Cargo.toml +++ b/applications/tari_merge_mining_proxy/Cargo.toml @@ -18,7 +18,7 @@ tari_comms = { path = "../../comms" } tari_core = { path = "../../base_layer/core", default-features = false, features = ["transactions"] } tari_app_utilities = { path = "../tari_app_utilities" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } anyhow = "1.0.53" bincode = "1.3.1" diff --git a/applications/tari_mining_node/Cargo.toml b/applications/tari_mining_node/Cargo.toml index 60a50a91a5..4d0c69de17 100644 --- a/applications/tari_mining_node/Cargo.toml +++ b/applications/tari_mining_node/Cargo.toml @@ -14,7 +14,7 @@ tari_comms = { path = "../../comms" } tari_app_utilities = { path = "../tari_app_utilities"} tari_app_grpc = { path = "../tari_app_grpc" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } crossbeam = "0.8" futures = "0.3" diff --git a/applications/tari_stratum_transcoder/Cargo.toml b/applications/tari_stratum_transcoder/Cargo.toml index b1b8757ba7..04eaf42491 100644 --- a/applications/tari_stratum_transcoder/Cargo.toml +++ b/applications/tari_stratum_transcoder/Cargo.toml @@ -17,7 +17,7 @@ tari_app_grpc = { path = "../tari_app_grpc" } tari_common = { path = "../../common" } tari_core = { path = "../../base_layer/core", default-features = false, features = ["transactions"] } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } bincode = "1.3.1" bytes = "0.5" diff --git a/applications/test_faucet/Cargo.toml b/applications/test_faucet/Cargo.toml index e5c98cf9e4..f812ee4f0d 100644 --- a/applications/test_faucet/Cargo.toml +++ b/applications/test_faucet/Cargo.toml @@ -10,7 +10,7 @@ avx2 = ["simd"] [dependencies] tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } tari_common_types = { path = "../../base_layer/common_types" } rand = "0.8" diff --git a/base_layer/common_types/Cargo.toml b/base_layer/common_types/Cargo.toml index 2d807b1099..09c4567d7f 100644 --- a/base_layer/common_types/Cargo.toml +++ b/base_layer/common_types/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" [dependencies] tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } digest = "0.9.0" lazy_static = "1.4.0" diff --git a/base_layer/core/Cargo.toml b/base_layer/core/Cargo.toml index 8d44460bda..ce93167f24 100644 --- a/base_layer/core/Cargo.toml +++ b/base_layer/core/Cargo.toml @@ -31,7 +31,7 @@ tari_service_framework = { version = "^0.28", path = "../service_framework" } tari_shutdown = { version = "^0.28", path = "../../infrastructure/shutdown" } tari_storage = { version = "^0.28", path = "../../infrastructure/storage" } tari_test_utils = { version = "^0.28", path = "../../infrastructure/test_utils" } -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } async-trait = "0.1.50" bincode = "1.1.4" diff --git a/base_layer/core/src/transactions/transaction_protocol/transaction_initializer.rs b/base_layer/core/src/transactions/transaction_protocol/transaction_initializer.rs index 27420de105..deaff776f8 100644 --- a/base_layer/core/src/transactions/transaction_protocol/transaction_initializer.rs +++ b/base_layer/core/src/transactions/transaction_protocol/transaction_initializer.rs @@ -290,17 +290,16 @@ impl SenderTransactionInitializer { .map(|o| self.fee.weighting().round_up_metadata_size(o.metadata_byte_size())) .sum::(); - // TODO: implement iter for FixedSet to avoid the clone #LOGGED size += self .recipient_scripts - .clone() - .into_vec() .iter() - .map(|script| { - self.fee.weighting().round_up_metadata_size( - self.get_recipient_output_features().consensus_encode_exact_size() + - script.consensus_encode_exact_size(), - ) + .filter_map(|script| { + script.map(|s| { + self.fee.weighting().round_up_metadata_size( + self.get_recipient_output_features().consensus_encode_exact_size() + + s.consensus_encode_exact_size(), + ) + }) }) .sum::(); diff --git a/base_layer/key_manager/src/error.rs b/base_layer/key_manager/src/error.rs index 3d67c59eb1..4b6bb6bcf4 100644 --- a/base_layer/key_manager/src/error.rs +++ b/base_layer/key_manager/src/error.rs @@ -59,4 +59,8 @@ pub enum MnemonicError { ByteArrayError(#[from] ByteArrayError), #[error("Encoding a mnemonic sequence to bytes requires exactly 24 mnemonic words")] EncodeInvalidLength, + #[error("Bits to integer conversion error")] + BitsToIntConversion, + #[error("Integer to bits conversion error")] + IntToBitsConversion, } diff --git a/base_layer/key_manager/src/mnemonic.rs b/base_layer/key_manager/src/mnemonic.rs index a6577e87c4..6b1c3dbdce 100644 --- a/base_layer/key_manager/src/mnemonic.rs +++ b/base_layer/key_manager/src/mnemonic.rs @@ -192,8 +192,8 @@ pub fn from_bytes(bytes: Vec, language: &MnemonicLanguage) -> Result mnemonic_sequence.push(mnemonic_word), Err(err) => return Err(err), } @@ -215,7 +215,7 @@ pub fn to_bytes_with_language(mnemonic_seq: &[String], language: &MnemonicLangua for curr_word in mnemonic_seq { match find_mnemonic_index_from_word(curr_word, language) { Ok(index) => { - let curr_bits = uint_to_bits(index, 11); + let curr_bits = checked_uint_to_bits(index, 11).ok_or(MnemonicError::IntToBitsConversion)?; bits.extend(curr_bits.iter().cloned()); }, Err(err) => return Err(err), diff --git a/base_layer/mmr/Cargo.toml b/base_layer/mmr/Cargo.toml index 941af6e2a7..a98516fa0a 100644 --- a/base_layer/mmr/Cargo.toml +++ b/base_layer/mmr/Cargo.toml @@ -13,7 +13,7 @@ native_bitmap = ["croaring"] benches = ["criterion"] [dependencies] -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } thiserror = "1.0.26" digest = "0.9.0" log = "0.4" diff --git a/base_layer/p2p/Cargo.toml b/base_layer/p2p/Cargo.toml index 7a6e235edc..86562c94d8 100644 --- a/base_layer/p2p/Cargo.toml +++ b/base_layer/p2p/Cargo.toml @@ -17,7 +17,7 @@ tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch tari_service_framework = { version = "^0.28", path = "../service_framework" } tari_shutdown = { version = "^0.28", path = "../../infrastructure/shutdown" } tari_storage = { version = "^0.28", path = "../../infrastructure/storage" } -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } anyhow = "1.0.53" bytes = "0.5" diff --git a/base_layer/tari_stratum_ffi/Cargo.toml b/base_layer/tari_stratum_ffi/Cargo.toml index cdb969d5ad..c941ef8dd0 100644 --- a/base_layer/tari_stratum_ffi/Cargo.toml +++ b/base_layer/tari_stratum_ffi/Cargo.toml @@ -11,7 +11,7 @@ tari_comms = { version = "^0.28", path = "../../comms" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } tari_common = { path = "../../common" } tari_core = { path = "../../base_layer/core", default-features = false, features = ["transactions"]} -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } libc = "0.2.65" thiserror = "1.0.26" hex = "0.4.2" diff --git a/base_layer/wallet/Cargo.toml b/base_layer/wallet/Cargo.toml index 5a723bbdd9..9d5e404f94 100644 --- a/base_layer/wallet/Cargo.toml +++ b/base_layer/wallet/Cargo.toml @@ -18,7 +18,7 @@ tari_service_framework = { version = "^0.28", path = "../service_framework" } tari_shutdown = { version = "^0.28", path = "../../infrastructure/shutdown" } tari_storage = { version = "^0.28", path = "../../infrastructure/storage" } tari_common_sqlite = { path = "../../common_sqlite" } -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } aes-gcm = "^0.8" async-trait = "0.1.50" diff --git a/base_layer/wallet_ffi/Cargo.toml b/base_layer/wallet_ffi/Cargo.toml index 61b322f56c..983df05bdf 100644 --- a/base_layer/wallet_ffi/Cargo.toml +++ b/base_layer/wallet_ffi/Cargo.toml @@ -15,7 +15,7 @@ tari_key_manager = { version = "^0.28", path = "../key_manager" } tari_p2p = { version = "^0.28", path = "../p2p" } tari_wallet = { version = "^0.28", path = "../wallet", features = ["c_integration"]} tari_shutdown = { version = "^0.28", path = "../../infrastructure/shutdown" } -tari_utilities = "^0.3" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } chrono = { version = "0.4.19", default-features = false, features = ["serde"] } futures = { version = "^0.3.1", features =["compat", "std"]} diff --git a/comms/dht/Cargo.toml b/comms/dht/Cargo.toml index 623f0b04b8..b0fc2e3417 100644 --- a/comms/dht/Cargo.toml +++ b/comms/dht/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" tari_comms = { version = "^0.28", path = "../", features = ["rpc"] } tari_comms_rpc_macros = { version = "^0.28", path = "../rpc_macros" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" } -tari_utilities = { version = "^0.3" } +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } tari_shutdown = { version = "^0.28", path = "../../infrastructure/shutdown" } tari_storage = { version = "^0.28", path = "../../infrastructure/storage" } tari_common_sqlite = { path = "../../common_sqlite" } diff --git a/comms/dht/src/store_forward/error.rs b/comms/dht/src/store_forward/error.rs index 2838621a0d..6657992f4b 100644 --- a/comms/dht/src/store_forward/error.rs +++ b/comms/dht/src/store_forward/error.rs @@ -27,7 +27,7 @@ use tari_comms::{ message::MessageError, peer_manager::{NodeId, PeerManagerError}, }; -use tari_utilities::{byte_array::ByteArrayError, ciphers::cipher::CipherError}; +use tari_utilities::byte_array::ByteArrayError; use thiserror::Error; use crate::{actor::DhtActorError, envelope::DhtMessageError, outbound::DhtOutboundError, storage::StorageError}; @@ -54,8 +54,6 @@ pub enum StoreAndForwardError { StoredMessageNotEncrypted, #[error("Unable to decrypt received stored message")] DecryptionFailed, - #[error("CipherError: {0}")] - CipherError(#[from] CipherError), #[error("DhtActorError: {0}")] DhtActorError(#[from] DhtActorError), #[error("Received duplicate stored message")] diff --git a/dan_layer/core/Cargo.toml b/dan_layer/core/Cargo.toml index fa3c69eb8e..ef7080de01 100644 --- a/dan_layer/core/Cargo.toml +++ b/dan_layer/core/Cargo.toml @@ -19,7 +19,7 @@ tari_storage = { path = "../../infrastructure/storage" } tari_core = {path = "../../base_layer/core"} tari_dan_common_types = {path = "../common_types"} tari_common_types = {path = "../../base_layer/common_types"} -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } anyhow = "1.0.53" async-trait = "0.1.50" diff --git a/dan_layer/storage_sqlite/Cargo.toml b/dan_layer/storage_sqlite/Cargo.toml index 2ff58b59a3..085cc6b1b2 100644 --- a/dan_layer/storage_sqlite/Cargo.toml +++ b/dan_layer/storage_sqlite/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" tari_dan_core = {path="../core"} tari_common = { path = "../../common"} tari_common_types = {path = "../../base_layer/common_types"} -tari_utilities = "0.3.0" +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } diesel = { version = "1.4.8", features = ["sqlite"] } diff --git a/infrastructure/storage/Cargo.toml b/infrastructure/storage/Cargo.toml index e43200fbef..46afed77ef 100644 --- a/infrastructure/storage/Cargo.toml +++ b/infrastructure/storage/Cargo.toml @@ -19,4 +19,4 @@ serde_derive = "1.0.80" [dev-dependencies] rand = "0.8" -tari_utilities = "^0.3" \ No newline at end of file +tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", branch = "main" } \ No newline at end of file