From beba3a7e0ac73711f0cc431fa1ef413aebc5427b Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 13:51:39 +0200 Subject: [PATCH 01/13] subxt: Remove unstable lints that cause compile warnings Signed-off-by: Alexandru Vasile --- subxt/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/subxt/src/lib.rs b/subxt/src/lib.rs index 3b6ba5bc90..e5287c1d4e 100644 --- a/subxt/src/lib.rs +++ b/subxt/src/lib.rs @@ -19,8 +19,6 @@ overflowing_literals, path_statements, patterns_in_fns_without_body, - private_interfaces, - private_bounds, unconditional_recursion, unused_allocation, unused_comparisons, From aa74612977cb7b917319e98e76cda48f13b673cf Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 14:18:59 +0200 Subject: [PATCH 02/13] cargo: Switch to workspace lints Signed-off-by: Alexandru Vasile --- Cargo.toml | 23 +++++++++++++++++++++++ cli/Cargo.toml | 3 +++ cli/build.rs | 2 ++ cli/src/main.rs | 2 +- codegen/Cargo.toml | 3 +++ codegen/src/lib.rs | 2 -- lightclient/Cargo.toml | 3 +++ lightclient/src/lib.rs | 8 -------- macro/Cargo.toml | 3 +++ macro/src/lib.rs | 5 +++-- metadata/Cargo.toml | 3 +++ metadata/benches/bench.rs | 2 ++ metadata/src/lib.rs | 2 -- signer/src/lib.rs | 2 -- subxt/Cargo.toml | 3 +++ subxt/src/lib.rs | 22 ---------------------- 16 files changed, 49 insertions(+), 39 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f1e1f3214c..6d1707ad24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,29 @@ repository = "https://github.com/paritytech/subxt" documentation = "https://docs.rs/subxt" homepage = "https://www.parity.io/" +[workspace.lints.rust] +bad_style = "deny" +improper_ctypes = "deny" +missing_docs = "deny" +non_shorthand_field_patterns = "deny" +no_mangle_generic_items = "deny" +overflowing_literals = "deny" +path_statements = "deny" +patterns_in_fns_without_body = "deny" +unconditional_recursion = "deny" +unused_allocation = "deny" +unused_comparisons = "deny" +unused_parens = "deny" +while_true = "deny" +trivial_casts = "deny" +trivial_numeric_casts = "deny" +unused_crate_dependencies = "deny" +unused_extern_crates = "deny" + +[workspace.lints.clippy] +type_complexity = "allow" +all = "deny" + [workspace.dependencies] async-trait = "0.1.74" assert_matches = "1.5.0" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 12bd3ac0a3..f569a30005 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -16,6 +16,9 @@ description = "Command line utilities for working with subxt codegen" name = "subxt" path = "src/main.rs" +[lints] +workspace = true + [features] # Compute the state root hash from the genesis entry. # Enable this to create a smaller chain spec file. diff --git a/cli/build.rs b/cli/build.rs index 7cb961e1b7..805d6ada8c 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -1,3 +1,5 @@ +//! Build script for the CLI. + use std::{borrow::Cow, process::Command}; fn main() { diff --git a/cli/src/main.rs b/cli/src/main.rs index 8bbae02cc8..2227647539 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -#![deny(unused_crate_dependencies)] +//! The Subxt CLI tool. mod commands; mod utils; diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 57c985282b..94f777639f 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -12,6 +12,9 @@ documentation = "https://docs.rs/subxt-codegen" homepage.workspace = true description = "Generate an API for interacting with a substrate node from FRAME metadata" +[lints] +workspace = true + [features] default = [] fetch-metadata = ["dep:jsonrpsee", "dep:tokio", "dep:frame-metadata"] diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index e319b1aaff..d154171055 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -6,8 +6,6 @@ //! This is used by the `#[subxt]` macro and `subxt codegen` CLI command, but can also //! be used directly if preferable. -#![deny(unused_crate_dependencies, missing_docs)] - mod api; mod ir; mod types; diff --git a/lightclient/Cargo.toml b/lightclient/Cargo.toml index 8242c64262..783d349d68 100644 --- a/lightclient/Cargo.toml +++ b/lightclient/Cargo.toml @@ -14,6 +14,9 @@ homepage.workspace = true description = "Light Client for chain interaction" keywords = ["parity", "substrate", "blockchain"] +[lints] +workspace = true + [features] default = ["native"] diff --git a/lightclient/src/lib.rs b/lightclient/src/lib.rs index 3c438579b5..ee3f727e26 100644 --- a/lightclient/src/lib.rs +++ b/lightclient/src/lib.rs @@ -10,14 +10,6 @@ //! //! This leverages the smoldot crate to connect to the chain. -#![deny( - missing_docs, - unused_crate_dependencies, - unused_extern_crates, - clippy::all -)] -#![allow(clippy::type_complexity)] - #[cfg(any( all(feature = "web", feature = "native"), not(any(feature = "web", feature = "native")) diff --git a/macro/Cargo.toml b/macro/Cargo.toml index b374dbf572..7efad649dc 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -13,6 +13,9 @@ documentation.workspace = true homepage.workspace = true description = "Generate types and helpers for interacting with Substrate runtimes." +[lints] +workspace = true + [features] web = ["subxt-codegen/web"] diff --git a/macro/src/lib.rs b/macro/src/lib.rs index d53c15af4e..c77d9ddc8d 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -extern crate proc_macro; +//! Subxt macro for generating Substrate runtime interfaces. use codec::Decode; use darling::{ast::NestedMeta, FromMeta}; @@ -73,7 +73,8 @@ struct SubstituteType { with: syn::Path, } -// Note: docs for this are in the subxt library; don't add any here as they will be appended. +// Note: docs for this are in the subxt library; don't add further docs here as they will be appended. +/// The subxt macro. #[proc_macro_attribute] #[proc_macro_error] pub fn subxt(args: TokenStream, input: TokenStream) -> TokenStream { diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 6e3669278d..655651b195 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -13,6 +13,9 @@ documentation.workspace = true homepage.workspace = true description = "Command line utilities for checking metadata compatibility between nodes." +[lints] +workspace = true + [dependencies] codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } frame-metadata = { workspace = true } diff --git a/metadata/benches/bench.rs b/metadata/benches/bench.rs index b743c0f6d8..c19e0adaae 100644 --- a/metadata/benches/bench.rs +++ b/metadata/benches/bench.rs @@ -2,6 +2,8 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. +//! Benchmarks for metadata hashing. + use codec::Decode; use criterion::*; use frame_metadata::{RuntimeMetadata, RuntimeMetadataPrefixed}; diff --git a/metadata/src/lib.rs b/metadata/src/lib.rs index b0186cab66..ca4d841c13 100644 --- a/metadata/src/lib.rs +++ b/metadata/src/lib.rs @@ -14,8 +14,6 @@ //! 2. Obtaining [`frame_metadata::RuntimeMetadataPrefixed`], and then //! using `.try_into()` to convert it into [`Metadata`]. -#![deny(missing_docs)] - mod from_into; mod utils; diff --git a/signer/src/lib.rs b/signer/src/lib.rs index 1e44b43f7b..77cf5b3d41 100644 --- a/signer/src/lib.rs +++ b/signer/src/lib.rs @@ -13,8 +13,6 @@ //! Enable the `subxt` feature to enable use of this [`sr25519::Keypair`] in signing //! subxt transactions for chains supporting sr25519 signatures. -#![deny(missing_docs)] - #[macro_use] mod utils; mod crypto; diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index 8fec9c4862..cc8ff5820c 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -14,6 +14,9 @@ homepage.workspace = true description = "Submit extrinsics (transactions) to a substrate node via RPC" keywords = ["parity", "substrate", "blockchain"] +[lints] +workspace = true + [features] # For dev and documentation reasons we enable more features than are often desired. # it's recommended to use `--no-default-features` and then select what you need. diff --git a/subxt/src/lib.rs b/subxt/src/lib.rs index e5287c1d4e..939400c5e7 100644 --- a/subxt/src/lib.rs +++ b/subxt/src/lib.rs @@ -10,28 +10,6 @@ //! //! Take a look at [the Subxt guide](book) to learn more about how to use Subxt. -#![deny( - bad_style, - improper_ctypes, - missing_docs, - non_shorthand_field_patterns, - no_mangle_generic_items, - overflowing_literals, - path_statements, - patterns_in_fns_without_body, - unconditional_recursion, - unused_allocation, - unused_comparisons, - unused_parens, - while_true, - trivial_casts, - trivial_numeric_casts, - unused_crate_dependencies, - unused_extern_crates, - clippy::all -)] -#![allow(clippy::type_complexity)] - #[cfg(any( all(feature = "web", feature = "native"), not(any(feature = "web", feature = "native")) From cdf9e1628d708a972673eb3a9e967b6896edbd73 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 14:22:17 +0200 Subject: [PATCH 03/13] cargo: Fix codec package at root level Signed-off-by: Alexandru Vasile --- cli/Cargo.toml | 2 +- codegen/Cargo.toml | 2 +- examples/parachain-example/Cargo.toml | 2 +- macro/Cargo.toml | 2 +- metadata/Cargo.toml | 2 +- signer/Cargo.toml | 2 +- subxt/Cargo.toml | 2 +- testing/generate-custom-metadata/Cargo.toml | 2 +- testing/integration-tests/Cargo.toml | 2 +- testing/ui-tests/Cargo.toml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index f569a30005..57f0f2739d 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -34,7 +34,7 @@ color-eyre = { workspace = true } serde_json = { workspace = true } hex = { workspace = true } frame-metadata = { workspace = true } -codec = { package = "parity-scale-codec", workspace = true } +codec = { workspace = true } scale-info = { workspace = true } scale-value = { workspace = true } syn = { workspace = true } diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 94f777639f..88a9e833ba 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -21,7 +21,7 @@ fetch-metadata = ["dep:jsonrpsee", "dep:tokio", "dep:frame-metadata"] web = ["jsonrpsee?/async-wasm-client", "jsonrpsee?/client-web-transport", "getrandom/js"] [dependencies] -codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } +codec = { workspace = true, features = ["derive"] } frame-metadata = { workspace = true, optional = true } heck = { workspace = true } proc-macro2 = { workspace = true } diff --git a/examples/parachain-example/Cargo.toml b/examples/parachain-example/Cargo.toml index bb959d4092..25768b12d0 100644 --- a/examples/parachain-example/Cargo.toml +++ b/examples/parachain-example/Cargo.toml @@ -12,6 +12,6 @@ futures = { version = "0.3.27", default-features = false, features = ["std"] } tokio = { version = "1.28", features = ["macros", "time", "rt-multi-thread"] } sp-core = "21.0.0" sp-runtime = "24.0.0" -codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false } +codec = { version = "3.4.0", default-features = false } scale-decode = "0.7.0" scale-encode = "0.3.0" diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 7efad649dc..30ed23a58a 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -23,7 +23,7 @@ web = ["subxt-codegen/web"] proc-macro = true [dependencies] -codec = { package = "parity-scale-codec", workspace = true } +codec = { workspace = true } darling = { workspace = true } proc-macro-error = { workspace = true } syn = { workspace = true } diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 655651b195..5933937aa4 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -17,7 +17,7 @@ description = "Command line utilities for checking metadata compatibility betwee workspace = true [dependencies] -codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } +codec = { workspace = true, features = ["derive"] } frame-metadata = { workspace = true } scale-info = { workspace = true } sp-core-hashing = { workspace = true } diff --git a/signer/Cargo.toml b/signer/Cargo.toml index d8e0398203..7ea6e7011f 100644 --- a/signer/Cargo.toml +++ b/signer/Cargo.toml @@ -37,7 +37,7 @@ native = ["subxt?/native"] subxt = { workspace = true, optional = true, default-features = false } regex = { workspace = true } hex = { workspace = true } -codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } +codec = { workspace = true, features = ["derive"] } sp-core-hashing = { workspace = true } thiserror = { workspace = true } pbkdf2 = { workspace = true } diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index cc8ff5820c..65c6c2dd07 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -54,7 +54,7 @@ unstable-light-client = ["subxt-lightclient", "tokio-stream"] [dependencies] async-trait = { workspace = true } -codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } +codec = { workspace = true, features = ["derive"] } scale-info = { workspace = true } scale-value = { workspace = true } scale-bits = { workspace = true } diff --git a/testing/generate-custom-metadata/Cargo.toml b/testing/generate-custom-metadata/Cargo.toml index dc5bf43066..0f9cd9d8c1 100644 --- a/testing/generate-custom-metadata/Cargo.toml +++ b/testing/generate-custom-metadata/Cargo.toml @@ -15,4 +15,4 @@ homepage.workspace = true subxt = { workspace = true, features = ["native"] } scale-info = { workspace = true, features = ["bit-vec"] } frame-metadata = { workspace = true } -codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "bit-vec"] } +codec = { workspace = true, features = ["derive", "bit-vec"] } diff --git a/testing/integration-tests/Cargo.toml b/testing/integration-tests/Cargo.toml index 27a2c83d9f..73b2dab58e 100644 --- a/testing/integration-tests/Cargo.toml +++ b/testing/integration-tests/Cargo.toml @@ -24,7 +24,7 @@ unstable-backend-client = [] [dev-dependencies] assert_matches = { workspace = true } -codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "bit-vec"] } +codec = { workspace = true, features = ["derive", "bit-vec"] } frame-metadata = { workspace = true } futures = { workspace = true } hex = { workspace = true } diff --git a/testing/ui-tests/Cargo.toml b/testing/ui-tests/Cargo.toml index 3ae0f25e92..1fba9d674f 100644 --- a/testing/ui-tests/Cargo.toml +++ b/testing/ui-tests/Cargo.toml @@ -13,7 +13,7 @@ trybuild = { workspace = true } hex = { workspace = true } scale-info = { workspace = true, features = ["bit-vec"] } frame-metadata = { workspace = true } -codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "bit-vec"] } +codec = { workspace = true, features = ["derive", "bit-vec"] } subxt = { workspace = true, features = ["native", "jsonrpsee"] } subxt-metadata = { workspace = true } generate-custom-metadata = { path = "../generate-custom-metadata" } From c0e6aa67fbc2517215715d4c90e2cda4d10cce82 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 14:23:11 +0200 Subject: [PATCH 04/13] cargo: Move profiles to the root level Signed-off-by: Alexandru Vasile --- Cargo.toml | 9 +++++++++ lightclient/Cargo.toml | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6d1707ad24..d0e5c79b33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -147,3 +147,12 @@ secp256k1 = "0.28.0" secrecy = "0.8.0" sha2 = "0.10.8" zeroize = { version = "1", default-features = false } + +[profile.dev.package.smoldot-light] +opt-level = 2 +[profile.test.package.smoldot-light] +opt-level = 2 +[profile.dev.package.smoldot] +opt-level = 2 +[profile.test.package.smoldot] +opt-level = 2 diff --git a/lightclient/Cargo.toml b/lightclient/Cargo.toml index 783d349d68..fbcdfe7fd1 100644 --- a/lightclient/Cargo.toml +++ b/lightclient/Cargo.toml @@ -80,12 +80,3 @@ pin-project = { workspace = true, optional = true } # Included if "web" feature is enabled, to enable its js feature. getrandom = { workspace = true, optional = true } - -[profile.dev.package.smoldot-light] -opt-level = 2 -[profile.test.package.smoldot-light] -opt-level = 2 -[profile.dev.package.smoldot] -opt-level = 2 -[profile.test.package.smoldot] -opt-level = 2 From 60dd68790e5bde8775dd2b3fae1ec4dc1b34dbc1 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 14:44:27 +0200 Subject: [PATCH 05/13] Fix lightclient and metadata crates Signed-off-by: Alexandru Vasile --- lightclient/src/client.rs | 15 +++++++-------- metadata/Cargo.toml | 3 --- metadata/src/lib.rs | 2 ++ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/lightclient/src/client.rs b/lightclient/src/client.rs index 69a1946316..0d51c749b5 100644 --- a/lightclient/src/client.rs +++ b/lightclient/src/client.rs @@ -1,7 +1,6 @@ // Copyright 2019-2023 Parity Technologies (UK) Ltd. // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. - use std::iter; use super::{ @@ -15,6 +14,12 @@ use super::platform::build_platform; pub const LOG_TARGET: &str = "subxt-light-client"; +/// The successful result of a subscription request. +pub type SubscriptionRequest = ( + oneshot::Receiver, + mpsc::UnboundedReceiver>, +); + /// A raw light-client RPC implementation that can connect to multiple chains. #[derive(Clone)] pub struct RawLightClientRpc { @@ -179,13 +184,7 @@ impl LightClientRpc { &self, method: String, params: String, - ) -> Result< - ( - oneshot::Receiver, - mpsc::UnboundedReceiver>, - ), - SendError, - > { + ) -> Result> { let (sub_id, sub_id_rx) = oneshot::channel(); let (sender, receiver) = mpsc::unbounded_channel(); diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 5933937aa4..e31b734bdd 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -13,9 +13,6 @@ documentation.workspace = true homepage.workspace = true description = "Command line utilities for checking metadata compatibility between nodes." -[lints] -workspace = true - [dependencies] codec = { workspace = true, features = ["derive"] } frame-metadata = { workspace = true } diff --git a/metadata/src/lib.rs b/metadata/src/lib.rs index ca4d841c13..b0186cab66 100644 --- a/metadata/src/lib.rs +++ b/metadata/src/lib.rs @@ -14,6 +14,8 @@ //! 2. Obtaining [`frame_metadata::RuntimeMetadataPrefixed`], and then //! using `.try_into()` to convert it into [`Metadata`]. +#![deny(missing_docs)] + mod from_into; mod utils; From c14f226e6e84fe91fc06b4aa5ad97e7706b8f595 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 14:45:02 +0200 Subject: [PATCH 06/13] Revert "cargo: Fix codec package at root level" This reverts commit cdf9e1628d708a972673eb3a9e967b6896edbd73. --- cli/Cargo.toml | 2 +- codegen/Cargo.toml | 2 +- examples/parachain-example/Cargo.toml | 2 +- macro/Cargo.toml | 2 +- metadata/Cargo.toml | 2 +- signer/Cargo.toml | 2 +- subxt/Cargo.toml | 2 +- testing/generate-custom-metadata/Cargo.toml | 2 +- testing/integration-tests/Cargo.toml | 2 +- testing/ui-tests/Cargo.toml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 57f0f2739d..f569a30005 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -34,7 +34,7 @@ color-eyre = { workspace = true } serde_json = { workspace = true } hex = { workspace = true } frame-metadata = { workspace = true } -codec = { workspace = true } +codec = { package = "parity-scale-codec", workspace = true } scale-info = { workspace = true } scale-value = { workspace = true } syn = { workspace = true } diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 88a9e833ba..94f777639f 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -21,7 +21,7 @@ fetch-metadata = ["dep:jsonrpsee", "dep:tokio", "dep:frame-metadata"] web = ["jsonrpsee?/async-wasm-client", "jsonrpsee?/client-web-transport", "getrandom/js"] [dependencies] -codec = { workspace = true, features = ["derive"] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } frame-metadata = { workspace = true, optional = true } heck = { workspace = true } proc-macro2 = { workspace = true } diff --git a/examples/parachain-example/Cargo.toml b/examples/parachain-example/Cargo.toml index 25768b12d0..bb959d4092 100644 --- a/examples/parachain-example/Cargo.toml +++ b/examples/parachain-example/Cargo.toml @@ -12,6 +12,6 @@ futures = { version = "0.3.27", default-features = false, features = ["std"] } tokio = { version = "1.28", features = ["macros", "time", "rt-multi-thread"] } sp-core = "21.0.0" sp-runtime = "24.0.0" -codec = { version = "3.4.0", default-features = false } +codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false } scale-decode = "0.7.0" scale-encode = "0.3.0" diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 30ed23a58a..7efad649dc 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -23,7 +23,7 @@ web = ["subxt-codegen/web"] proc-macro = true [dependencies] -codec = { workspace = true } +codec = { package = "parity-scale-codec", workspace = true } darling = { workspace = true } proc-macro-error = { workspace = true } syn = { workspace = true } diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index e31b734bdd..6e3669278d 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true description = "Command line utilities for checking metadata compatibility between nodes." [dependencies] -codec = { workspace = true, features = ["derive"] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } frame-metadata = { workspace = true } scale-info = { workspace = true } sp-core-hashing = { workspace = true } diff --git a/signer/Cargo.toml b/signer/Cargo.toml index 7ea6e7011f..d8e0398203 100644 --- a/signer/Cargo.toml +++ b/signer/Cargo.toml @@ -37,7 +37,7 @@ native = ["subxt?/native"] subxt = { workspace = true, optional = true, default-features = false } regex = { workspace = true } hex = { workspace = true } -codec = { workspace = true, features = ["derive"] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } sp-core-hashing = { workspace = true } thiserror = { workspace = true } pbkdf2 = { workspace = true } diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index 65c6c2dd07..cc8ff5820c 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -54,7 +54,7 @@ unstable-light-client = ["subxt-lightclient", "tokio-stream"] [dependencies] async-trait = { workspace = true } -codec = { workspace = true, features = ["derive"] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } scale-info = { workspace = true } scale-value = { workspace = true } scale-bits = { workspace = true } diff --git a/testing/generate-custom-metadata/Cargo.toml b/testing/generate-custom-metadata/Cargo.toml index 0f9cd9d8c1..dc5bf43066 100644 --- a/testing/generate-custom-metadata/Cargo.toml +++ b/testing/generate-custom-metadata/Cargo.toml @@ -15,4 +15,4 @@ homepage.workspace = true subxt = { workspace = true, features = ["native"] } scale-info = { workspace = true, features = ["bit-vec"] } frame-metadata = { workspace = true } -codec = { workspace = true, features = ["derive", "bit-vec"] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "bit-vec"] } diff --git a/testing/integration-tests/Cargo.toml b/testing/integration-tests/Cargo.toml index 73b2dab58e..27a2c83d9f 100644 --- a/testing/integration-tests/Cargo.toml +++ b/testing/integration-tests/Cargo.toml @@ -24,7 +24,7 @@ unstable-backend-client = [] [dev-dependencies] assert_matches = { workspace = true } -codec = { workspace = true, features = ["derive", "bit-vec"] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "bit-vec"] } frame-metadata = { workspace = true } futures = { workspace = true } hex = { workspace = true } diff --git a/testing/ui-tests/Cargo.toml b/testing/ui-tests/Cargo.toml index 1fba9d674f..3ae0f25e92 100644 --- a/testing/ui-tests/Cargo.toml +++ b/testing/ui-tests/Cargo.toml @@ -13,7 +13,7 @@ trybuild = { workspace = true } hex = { workspace = true } scale-info = { workspace = true, features = ["bit-vec"] } frame-metadata = { workspace = true } -codec = { workspace = true, features = ["derive", "bit-vec"] } +codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "bit-vec"] } subxt = { workspace = true, features = ["native", "jsonrpsee"] } subxt-metadata = { workspace = true } generate-custom-metadata = { path = "../generate-custom-metadata" } From 4f85df57a25221707696ef04eb89ca4c79bfd0d2 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 14:54:43 +0200 Subject: [PATCH 07/13] Fix complexity clippy Signed-off-by: Alexandru Vasile --- codegen/Cargo.toml | 2 -- codegen/src/lib.rs | 2 ++ lightclient/src/background.rs | 1 + lightclient/src/client.rs | 15 ++++++++------- macro/Cargo.toml | 3 --- macro/src/lib.rs | 3 ++- subxt/src/backend/legacy/mod.rs | 2 ++ subxt/src/backend/unstable/rpc_methods.rs | 2 ++ 8 files changed, 17 insertions(+), 13 deletions(-) diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 94f777639f..5416b63d0d 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -12,8 +12,6 @@ documentation = "https://docs.rs/subxt-codegen" homepage.workspace = true description = "Generate an API for interacting with a substrate node from FRAME metadata" -[lints] -workspace = true [features] default = [] diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index d154171055..e319b1aaff 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -6,6 +6,8 @@ //! This is used by the `#[subxt]` macro and `subxt codegen` CLI command, but can also //! be used directly if preferable. +#![deny(unused_crate_dependencies, missing_docs)] + mod api; mod ir; mod types; diff --git a/lightclient/src/background.rs b/lightclient/src/background.rs index bb0b9b3f3c..1e34596d9e 100644 --- a/lightclient/src/background.rs +++ b/lightclient/src/background.rs @@ -55,6 +55,7 @@ pub enum FromSubxt { } /// Background task data. +#[allow(clippy::type_complexity)] pub struct BackgroundTask { /// Smoldot light client implementation that leverages the exposed platform. client: smoldot_light::Client, diff --git a/lightclient/src/client.rs b/lightclient/src/client.rs index 0d51c749b5..0269986384 100644 --- a/lightclient/src/client.rs +++ b/lightclient/src/client.rs @@ -14,12 +14,6 @@ use super::platform::build_platform; pub const LOG_TARGET: &str = "subxt-light-client"; -/// The successful result of a subscription request. -pub type SubscriptionRequest = ( - oneshot::Receiver, - mpsc::UnboundedReceiver>, -); - /// A raw light-client RPC implementation that can connect to multiple chains. #[derive(Clone)] pub struct RawLightClientRpc { @@ -180,11 +174,18 @@ impl LightClientRpc { /// /// This method sends a request to the light-client to establish an RPC subscription with the provided parameters. /// The parameters are parsed into a valid JSON object in the background. + #[allow(clippy::type_complexity)] pub fn subscription_request( &self, method: String, params: String, - ) -> Result> { + ) -> Result< + ( + oneshot::Receiver, + mpsc::UnboundedReceiver>, + ), + SendError, + > { let (sub_id, sub_id_rx) = oneshot::channel(); let (sender, receiver) = mpsc::unbounded_channel(); diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 7efad649dc..b374dbf572 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -13,9 +13,6 @@ documentation.workspace = true homepage.workspace = true description = "Generate types and helpers for interacting with Substrate runtimes." -[lints] -workspace = true - [features] web = ["subxt-codegen/web"] diff --git a/macro/src/lib.rs b/macro/src/lib.rs index c77d9ddc8d..660d28f63a 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -4,6 +4,8 @@ //! Subxt macro for generating Substrate runtime interfaces. +extern crate proc_macro; + use codec::Decode; use darling::{ast::NestedMeta, FromMeta}; use proc_macro::TokenStream; @@ -74,7 +76,6 @@ struct SubstituteType { } // Note: docs for this are in the subxt library; don't add further docs here as they will be appended. -/// The subxt macro. #[proc_macro_attribute] #[proc_macro_error] pub fn subxt(args: TokenStream, input: TokenStream) -> TokenStream { diff --git a/subxt/src/backend/legacy/mod.rs b/subxt/src/backend/legacy/mod.rs index 1a008127b9..cffb3f4475 100644 --- a/subxt/src/backend/legacy/mod.rs +++ b/subxt/src/backend/legacy/mod.rs @@ -337,6 +337,7 @@ const STORAGE_PAGE_SIZE: u32 = 32; /// This provides a stream of values given some prefix `key`. It /// internally manages pagination and such. +#[allow(clippy::type_complexity)] pub struct StorageFetchDescendantKeysStream { methods: LegacyRpcMethods, key: Vec, @@ -408,6 +409,7 @@ impl Stream for StorageFetchDescendantKeysStream { } /// This provides a stream of values given some stream of keys. +#[allow(clippy::type_complexity)] pub struct StorageFetchDescendantValuesStream { // Stream of keys. keys: StorageFetchDescendantKeysStream, diff --git a/subxt/src/backend/unstable/rpc_methods.rs b/subxt/src/backend/unstable/rpc_methods.rs index 5e0764f9ce..ca1a38691b 100644 --- a/subxt/src/backend/unstable/rpc_methods.rs +++ b/subxt/src/backend/unstable/rpc_methods.rs @@ -809,6 +809,8 @@ pub(crate) mod hashmap_as_tuple_list { { deserializer.deserialize_any(HashMapVisitor(PhantomData)) } + + #[allow(clippy::type_complexity)] struct HashMapVisitor(PhantomData HashMap>); impl<'de, K, V, BH> Visitor<'de> for HashMapVisitor From abac6b84b6864aa73111945c78ded8a2aa5b229d Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 16:54:23 +0200 Subject: [PATCH 08/13] cargo: Remove lints to be replaced by `cargo machete` Signed-off-by: Alexandru Vasile --- Cargo.toml | 4 ---- subxt/examples/blocks_subscribing.rs | 1 + subxt/examples/constants_dynamic.rs | 1 + subxt/examples/constants_static.rs | 1 + subxt/examples/events.rs | 1 + subxt/examples/light_client_parachains.rs | 1 + subxt/examples/light_client_tx_basic.rs | 1 + subxt/examples/rpc_legacy.rs | 1 + subxt/examples/runtime_apis_dynamic.rs | 1 + subxt/examples/runtime_apis_raw.rs | 1 + subxt/examples/runtime_apis_static.rs | 1 + subxt/examples/setup_client_custom_rpc.rs | 1 + subxt/examples/setup_client_offline.rs | 1 + subxt/examples/setup_config_custom.rs | 1 + subxt/examples/setup_config_signed_extension.rs | 1 + subxt/examples/storage_fetch.rs | 1 + subxt/examples/storage_fetch_dynamic.rs | 1 + subxt/examples/storage_iterating.rs | 1 + subxt/examples/storage_iterating_dynamic.rs | 1 + subxt/examples/storage_iterating_partial.rs | 1 + subxt/examples/tx_basic.rs | 1 + subxt/examples/tx_status_stream.rs | 1 + subxt/examples/tx_with_params.rs | 1 + 23 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d0e5c79b33..ac558d929b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,10 +49,6 @@ unconditional_recursion = "deny" unused_allocation = "deny" unused_comparisons = "deny" unused_parens = "deny" -while_true = "deny" -trivial_casts = "deny" -trivial_numeric_casts = "deny" -unused_crate_dependencies = "deny" unused_extern_crates = "deny" [workspace.lints.clippy] diff --git a/subxt/examples/blocks_subscribing.rs b/subxt/examples/blocks_subscribing.rs index 109a81bf5f..5511df990d 100644 --- a/subxt/examples/blocks_subscribing.rs +++ b/subxt/examples/blocks_subscribing.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; #[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] diff --git a/subxt/examples/constants_dynamic.rs b/subxt/examples/constants_dynamic.rs index ba23a8415d..af23cfaaa6 100644 --- a/subxt/examples/constants_dynamic.rs +++ b/subxt/examples/constants_dynamic.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; #[tokio::main] diff --git a/subxt/examples/constants_static.rs b/subxt/examples/constants_static.rs index ebbf6ed0e9..9fc5477fc9 100644 --- a/subxt/examples/constants_static.rs +++ b/subxt/examples/constants_static.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; #[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] diff --git a/subxt/examples/events.rs b/subxt/examples/events.rs index 297670b927..aaa9c1e319 100644 --- a/subxt/examples/events.rs +++ b/subxt/examples/events.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; #[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] diff --git a/subxt/examples/light_client_parachains.rs b/subxt/examples/light_client_parachains.rs index 775d420510..227da26fe0 100644 --- a/subxt/examples/light_client_parachains.rs +++ b/subxt/examples/light_client_parachains.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use futures::StreamExt; use std::{iter, num::NonZeroU32}; use subxt::{ diff --git a/subxt/examples/light_client_tx_basic.rs b/subxt/examples/light_client_tx_basic.rs index 7e0e9ad1bb..37ce6cb533 100644 --- a/subxt/examples/light_client_tx_basic.rs +++ b/subxt/examples/light_client_tx_basic.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{client::LightClient, PolkadotConfig}; use subxt_signer::sr25519::dev; diff --git a/subxt/examples/rpc_legacy.rs b/subxt/examples/rpc_legacy.rs index 787cd7b5a5..f0b831c3b6 100644 --- a/subxt/examples/rpc_legacy.rs +++ b/subxt/examples/rpc_legacy.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::backend::{legacy::LegacyRpcMethods, rpc::RpcClient}; use subxt::config::DefaultExtrinsicParamsBuilder as Params; use subxt::{OnlineClient, PolkadotConfig}; diff --git a/subxt/examples/runtime_apis_dynamic.rs b/subxt/examples/runtime_apis_dynamic.rs index 2a02118abd..7d70a3398d 100644 --- a/subxt/examples/runtime_apis_dynamic.rs +++ b/subxt/examples/runtime_apis_dynamic.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::dynamic::Value; use subxt::{config::PolkadotConfig, OnlineClient}; use subxt_signer::sr25519::dev; diff --git a/subxt/examples/runtime_apis_raw.rs b/subxt/examples/runtime_apis_raw.rs index c1ee7cf8d5..4345bfdb3b 100644 --- a/subxt/examples/runtime_apis_raw.rs +++ b/subxt/examples/runtime_apis_raw.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::ext::codec::Compact; use subxt::ext::frame_metadata::RuntimeMetadataPrefixed; use subxt::{OnlineClient, PolkadotConfig}; diff --git a/subxt/examples/runtime_apis_static.rs b/subxt/examples/runtime_apis_static.rs index a41c20e244..5900e516d2 100644 --- a/subxt/examples/runtime_apis_static.rs +++ b/subxt/examples/runtime_apis_static.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{config::PolkadotConfig, OnlineClient}; use subxt_signer::sr25519::dev; diff --git a/subxt/examples/setup_client_custom_rpc.rs b/subxt/examples/setup_client_custom_rpc.rs index 0745ec6123..95cff73de0 100644 --- a/subxt/examples/setup_client_custom_rpc.rs +++ b/subxt/examples/setup_client_custom_rpc.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use std::{ fmt::Write, pin::Pin, diff --git a/subxt/examples/setup_client_offline.rs b/subxt/examples/setup_client_offline.rs index f9b8bc53cf..70afc0a41c 100644 --- a/subxt/examples/setup_client_offline.rs +++ b/subxt/examples/setup_client_offline.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::ext::codec::Decode; use subxt::metadata::Metadata; use subxt::utils::H256; diff --git a/subxt/examples/setup_config_custom.rs b/subxt/examples/setup_config_custom.rs index b1da57913c..89a0c1dd93 100644 --- a/subxt/examples/setup_config_custom.rs +++ b/subxt/examples/setup_config_custom.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use codec::Encode; use subxt::client::OfflineClientT; use subxt::config::{Config, ExtrinsicParams, ExtrinsicParamsEncoder, ExtrinsicParamsError}; diff --git a/subxt/examples/setup_config_signed_extension.rs b/subxt/examples/setup_config_signed_extension.rs index 94836c4485..2442de629b 100644 --- a/subxt/examples/setup_config_signed_extension.rs +++ b/subxt/examples/setup_config_signed_extension.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use codec::Encode; use scale_encode::EncodeAsType; use scale_info::PortableRegistry; diff --git a/subxt/examples/storage_fetch.rs b/subxt/examples/storage_fetch.rs index 69e674407a..910bd26ed8 100644 --- a/subxt/examples/storage_fetch.rs +++ b/subxt/examples/storage_fetch.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; use subxt_signer::sr25519::dev; diff --git a/subxt/examples/storage_fetch_dynamic.rs b/subxt/examples/storage_fetch_dynamic.rs index 0d2a5edff7..17bf1de785 100644 --- a/subxt/examples/storage_fetch_dynamic.rs +++ b/subxt/examples/storage_fetch_dynamic.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::dynamic::{At, Value}; use subxt::{OnlineClient, PolkadotConfig}; use subxt_signer::sr25519::dev; diff --git a/subxt/examples/storage_iterating.rs b/subxt/examples/storage_iterating.rs index 99a4719c9b..e99bb884b3 100644 --- a/subxt/examples/storage_iterating.rs +++ b/subxt/examples/storage_iterating.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; #[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale")] diff --git a/subxt/examples/storage_iterating_dynamic.rs b/subxt/examples/storage_iterating_dynamic.rs index acc334d7a6..391ce60cd7 100644 --- a/subxt/examples/storage_iterating_dynamic.rs +++ b/subxt/examples/storage_iterating_dynamic.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; #[tokio::main] diff --git a/subxt/examples/storage_iterating_partial.rs b/subxt/examples/storage_iterating_partial.rs index daf763e2ec..d24fd36bf7 100644 --- a/subxt/examples/storage_iterating_partial.rs +++ b/subxt/examples/storage_iterating_partial.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use polkadot::multisig::events::NewMultisig; use polkadot::runtime_types::{ frame_system::pallet::Call, polkadot_runtime::RuntimeCall, sp_weights::weight_v2::Weight, diff --git a/subxt/examples/tx_basic.rs b/subxt/examples/tx_basic.rs index b1ffd30331..0c2dc243eb 100644 --- a/subxt/examples/tx_basic.rs +++ b/subxt/examples/tx_basic.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{OnlineClient, PolkadotConfig}; use subxt_signer::sr25519::dev; diff --git a/subxt/examples/tx_status_stream.rs b/subxt/examples/tx_status_stream.rs index 134b739dbe..36e125ac5e 100644 --- a/subxt/examples/tx_status_stream.rs +++ b/subxt/examples/tx_status_stream.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::{tx::TxStatus, OnlineClient, PolkadotConfig}; use subxt_signer::sr25519::dev; diff --git a/subxt/examples/tx_with_params.rs b/subxt/examples/tx_with_params.rs index 810597a5d1..cf893c36ca 100644 --- a/subxt/examples/tx_with_params.rs +++ b/subxt/examples/tx_with_params.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use subxt::config::polkadot::PolkadotExtrinsicParamsBuilder as Params; use subxt::{OnlineClient, PolkadotConfig}; use subxt_signer::sr25519::dev; From 5ca4bd860558f7b61613bc0a6b9e12b53c815432 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 17:03:32 +0200 Subject: [PATCH 09/13] cargo: Remove unused dependencies (detected by machete) Signed-off-by: Alexandru Vasile --- Cargo.lock | 2 - examples/parachain-example/Cargo.lock | 1645 ++----------------- examples/parachain-example/Cargo.toml | 6 - lightclient/Cargo.toml | 1 - signer/Cargo.toml | 3 + testing/generate-custom-metadata/Cargo.toml | 1 - testing/test-runtime/Cargo.toml | 3 + 7 files changed, 142 insertions(+), 1519 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a808e7da76..60f803ea7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1660,7 +1660,6 @@ dependencies = [ "frame-metadata 16.0.0", "parity-scale-codec", "scale-info", - "subxt", ] [[package]] @@ -4438,7 +4437,6 @@ dependencies = [ "thiserror", "tokio", "tokio-stream", - "tokio-util", "tracing", "wasm-bindgen", "wasm-bindgen-futures", diff --git a/examples/parachain-example/Cargo.lock b/examples/parachain-example/Cargo.lock index e7d3678c4b..b0cee224dd 100644 --- a/examples/parachain-example/Cargo.lock +++ b/examples/parachain-example/Cargo.lock @@ -2,16 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "Inflector" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" -dependencies = [ - "lazy_static", - "regex", -] - [[package]] name = "addr2line" version = "0.19.0" @@ -27,17 +17,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" -[[package]] -name = "ahash" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" -dependencies = [ - "getrandom 0.2.10", - "once_cell", - "version_check", -] - [[package]] name = "ahash" version = "0.8.3" @@ -45,7 +24,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if", - "getrandom 0.2.10", "once_cell", "version_check", ] @@ -65,42 +43,12 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anyhow" version = "1.0.71" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" -[[package]] -name = "array-bytes" -version = "4.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" - [[package]] name = "arrayref" version = "0.3.7" @@ -116,12 +64,6 @@ dependencies = [ "nodrop", ] -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - [[package]] name = "arrayvec" version = "0.7.4" @@ -179,7 +121,7 @@ dependencies = [ "log", "parking", "polling", - "rustix 0.37.20", + "rustix", "slab", "socket2 0.4.9", "waker-fn", @@ -219,7 +161,7 @@ dependencies = [ "cfg-if", "event-listener", "futures-lite", - "rustix 0.37.20", + "rustix", "signal-hook", "windows-sys 0.48.0", ] @@ -301,15 +243,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - [[package]] name = "bip39" version = "2.0.0" @@ -375,25 +308,13 @@ dependencies = [ "constant_time_eq 0.2.6", ] -[[package]] -name = "block-buffer" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" -dependencies = [ - "block-padding", - "byte-tools", - "byteorder", - "generic-array 0.12.4", -] - [[package]] name = "block-buffer" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -402,16 +323,7 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array 0.14.7", -] - -[[package]] -name = "block-padding" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" -dependencies = [ - "byte-tools", + "generic-array", ] [[package]] @@ -429,24 +341,6 @@ dependencies = [ "log", ] -[[package]] -name = "bounded-collections" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb5b05133427c07c4776906f673ccf36c21b102c9829c641a5b56bd151d44fd6" -dependencies = [ - "log", - "parity-scale-codec", - "scale-info", - "serde", -] - -[[package]] -name = "bs58" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" - [[package]] name = "bs58" version = "0.5.0" @@ -468,12 +362,6 @@ version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" -[[package]] -name = "byte-tools" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" - [[package]] name = "byteorder" version = "1.4.3" @@ -512,18 +400,6 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "chrono" -version = "0.4.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "num-traits", - "winapi", -] - [[package]] name = "cipher" version = "0.4.4" @@ -577,15 +453,6 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" -[[package]] -name = "cpp_demangle" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" -dependencies = [ - "cfg-if", -] - [[package]] name = "cpufeatures" version = "0.2.8" @@ -595,24 +462,6 @@ dependencies = [ "libc", ] -[[package]] -name = "cranelift-entity" -version = "0.95.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40099d38061b37e505e63f89bab52199037a72b931ad4868d9089ff7268660b0" -dependencies = [ - "serde", -] - -[[package]] -name = "crc32fast" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" -dependencies = [ - "cfg-if", -] - [[package]] name = "crossbeam-queue" version = "0.3.8" @@ -644,7 +493,7 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array 0.14.7", + "generic-array", "typenum", ] @@ -654,44 +503,8 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array 0.14.7", - "subtle", -] - -[[package]] -name = "crypto-mac" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" -dependencies = [ - "generic-array 0.14.7", - "subtle", -] - -[[package]] -name = "curve25519-dalek" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216" -dependencies = [ - "byteorder", - "digest 0.8.1", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - -[[package]] -name = "curve25519-dalek" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.5.1", + "generic-array", "subtle", - "zeroize", ] [[package]] @@ -730,7 +543,7 @@ checksum = "1c359b7249347e46fb28804470d071c921156ad62b3eef5d34e2ba867533dec8" dependencies = [ "byteorder", "digest 0.9.0", - "rand_core 0.6.4", + "rand_core", "subtle-ng", "zeroize", ] @@ -829,22 +642,13 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "digest" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" -dependencies = [ - "generic-array 0.12.4", -] - [[package]] name = "digest" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -864,75 +668,13 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" -[[package]] -name = "dyn-clonable" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e9232f0e607a262ceb9bd5141a3dfb3e4db6994b31989bbfd845878cba59fd4" -dependencies = [ - "dyn-clonable-impl", - "dyn-clone", -] - -[[package]] -name = "dyn-clonable-impl" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "dyn-clone" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30" - -[[package]] -name = "ed25519" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" -dependencies = [ - "signature 1.6.4", -] - [[package]] name = "ed25519" version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ - "signature 2.1.0", -] - -[[package]] -name = "ed25519-dalek" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" -dependencies = [ - "curve25519-dalek 3.2.0", - "ed25519 1.5.3", - "sha2 0.9.9", - "zeroize", -] - -[[package]] -name = "ed25519-zebra" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c24f403d068ad0b359e577a77f92392118be3f3c927538f2bb544a5ecd828c6" -dependencies = [ - "curve25519-dalek 3.2.0", - "hashbrown 0.12.3", - "hex", - "rand_core 0.6.4", - "sha2 0.9.9", - "zeroize", + "signature", ] [[package]] @@ -941,12 +683,12 @@ version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ - "curve25519-dalek 4.1.1", - "ed25519 2.2.3", + "curve25519-dalek", + "ed25519", "hashbrown 0.14.0", "hex", - "rand_core 0.6.4", - "sha2 0.10.7", + "rand_core", + "sha2 0.10.8", "zeroize", ] @@ -956,12 +698,6 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" -[[package]] -name = "environmental" -version = "1.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e48c92028aaa870e83d51c64e5d4e0b6981b360c522198c23959f219a4e1b15b" - [[package]] name = "equivalent" version = "1.0.0" @@ -995,18 +731,6 @@ version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" -[[package]] -name = "fake-simd" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" - -[[package]] -name = "fallible-iterator" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" - [[package]] name = "fastrand" version = "1.9.0" @@ -1029,7 +753,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand 0.8.5", + "rand", "rustc-hex", "static_assertions", ] @@ -1080,13 +804,12 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" +checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335" dependencies = [ "futures-channel", "futures-core", - "futures-executor", "futures-io", "futures-sink", "futures-task", @@ -1095,9 +818,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" dependencies = [ "futures-core", "futures-sink", @@ -1105,27 +828,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" - -[[package]] -name = "futures-executor" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", - "num_cpus", -] +checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" [[package]] name = "futures-io" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" +checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa" [[package]] name = "futures-lite" @@ -1144,9 +855,9 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" +checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" dependencies = [ "proc-macro2", "quote", @@ -1155,15 +866,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" +checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" [[package]] name = "futures-task" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" +checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" [[package]] name = "futures-timer" @@ -1173,9 +884,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" dependencies = [ "futures-channel", "futures-core", @@ -1189,15 +900,6 @@ dependencies = [ "slab", ] -[[package]] -name = "generic-array" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" -dependencies = [ - "typenum", -] - [[package]] name = "generic-array" version = "0.14.7" @@ -1208,17 +910,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - [[package]] name = "getrandom" version = "0.2.10" @@ -1227,7 +918,7 @@ checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", ] [[package]] @@ -1235,11 +926,6 @@ name = "gimli" version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" -dependencies = [ - "fallible-iterator", - "indexmap 1.9.3", - "stable_deref_trait", -] [[package]] name = "h2" @@ -1260,38 +946,11 @@ dependencies = [ "tracing", ] -[[package]] -name = "hash-db" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e7d7786361d7425ae2fe4f9e407eb0efaa0840f5212d109cc018c40c35c6ab4" - -[[package]] -name = "hash256-std-hasher" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92c171d55b98633f4ed3860808f004099b36c1cc29c42cfc53aa8591b21efcf2" -dependencies = [ - "crunchy", -] - [[package]] name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash 0.7.6", -] - -[[package]] -name = "hashbrown" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" -dependencies = [ - "ahash 0.8.3", -] [[package]] name = "hashbrown" @@ -1299,7 +958,7 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" dependencies = [ - "ahash 0.8.3", + "ahash", "allocator-api2", "serde", ] @@ -1337,17 +996,7 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" dependencies = [ - "crypto-mac 0.8.0", - "digest 0.9.0", -] - -[[package]] -name = "hmac" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" -dependencies = [ - "crypto-mac 0.11.1", + "crypto-mac", "digest 0.9.0", ] @@ -1367,7 +1016,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ "digest 0.9.0", - "generic-array 0.14.7", + "generic-array", "hmac 0.8.1", ] @@ -1446,39 +1095,16 @@ dependencies = [ ] [[package]] -name = "iana-time-zone" -version = "0.1.57" +name = "ident_case" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows", -] +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" +name = "idna" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "idna" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -1521,7 +1147,6 @@ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", - "serde", ] [[package]] @@ -1546,7 +1171,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" dependencies = [ - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -1558,15 +1183,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "integer-sqrt" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770" -dependencies = [ - "num-traits", -] - [[package]] name = "io-lifetimes" version = "1.0.11" @@ -1699,12 +1315,6 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - [[package]] name = "libc" version = "0.2.149" @@ -1730,7 +1340,7 @@ dependencies = [ "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand 0.8.5", + "rand", "serde", "sha2 0.9.9", "typenum", @@ -1765,12 +1375,6 @@ dependencies = [ "libsecp256k1-core", ] -[[package]] -name = "linux-raw-sys" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" - [[package]] name = "linux-raw-sys" version = "0.3.8" @@ -1799,69 +1403,12 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4a83fb7698b3643a0e34f9ae6f2e8f0178c0fd42f8b59d493aa271ff3a5bf21" -[[package]] -name = "mach" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" -dependencies = [ - "libc", -] - -[[package]] -name = "matchers" -version = "0.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" -dependencies = [ - "regex-automata 0.1.10", -] - [[package]] name = "memchr" version = "2.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" -[[package]] -name = "memfd" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" -dependencies = [ - "rustix 0.37.20", -] - -[[package]] -name = "memoffset" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" -dependencies = [ - "autocfg", -] - -[[package]] -name = "memory-db" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" -dependencies = [ - "hash-db", -] - -[[package]] -name = "merlin" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e261cf0f8b3c42ded9f7d2bb59dea03aa52bc8a1cbc7482f9fc3fd1229d3b42" -dependencies = [ - "byteorder", - "keccak", - "rand_core 0.5.1", - "zeroize", -] - [[package]] name = "merlin" version = "3.0.0" @@ -1870,7 +1417,7 @@ checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" dependencies = [ "byteorder", "keccak", - "rand_core 0.6.4", + "rand_core", "zeroize", ] @@ -1891,12 +1438,12 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.8" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" +checksum = "3dce281c5e46beae905d4de1870d8b1509a9142b62eedf18b443b011ca8343d0" dependencies = [ "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.48.0", ] @@ -1912,12 +1459,6 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" -[[package]] -name = "nohash-hasher" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" - [[package]] name = "nom" version = "7.1.3" @@ -1939,16 +1480,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-format" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" -dependencies = [ - "arrayvec 0.7.4", - "itoa", -] - [[package]] name = "num-integer" version = "0.1.45" @@ -1996,9 +1527,6 @@ version = "0.30.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" dependencies = [ - "crc32fast", - "hashbrown 0.13.2", - "indexmap 1.9.3", "memchr", ] @@ -2008,12 +1536,6 @@ version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" -[[package]] -name = "opaque-debug" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" - [[package]] name = "opaque-debug" version = "0.3.0" @@ -2030,12 +1552,6 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" name = "parachain-example" version = "0.1.0" dependencies = [ - "futures", - "parity-scale-codec", - "scale-decode 0.7.0", - "scale-encode 0.3.0", - "sp-core", - "sp-runtime", "subxt", "subxt-signer", "tokio", @@ -2050,7 +1566,6 @@ dependencies = [ "arrayvec 0.7.4", "bitvec", "byte-slice-cast", - "bytes", "impl-trait-for-tuples", "parity-scale-codec-derive", "serde", @@ -2094,7 +1609,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-targets 0.48.0", + "windows-targets", ] [[package]] @@ -2103,24 +1618,6 @@ version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" -[[package]] -name = "pbkdf2" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa" -dependencies = [ - "crypto-mac 0.11.1", -] - -[[package]] -name = "pbkdf2" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" -dependencies = [ - "digest 0.10.7", -] - [[package]] name = "pbkdf2" version = "0.12.2" @@ -2197,7 +1694,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" dependencies = [ "cpufeatures", - "opaque-debug 0.3.0", + "opaque-debug", "universal-hash", ] @@ -2256,22 +1753,13 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.69" +version = "1.0.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" +checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" dependencies = [ "unicode-ident", ] -[[package]] -name = "psm" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" -dependencies = [ - "cc", -] - [[package]] name = "quote" version = "1.0.33" @@ -2287,19 +1775,6 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] - [[package]] name = "rand" version = "0.8.5" @@ -2307,18 +1782,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "rand_chacha", + "rand_core", ] [[package]] @@ -2328,16 +1793,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", + "rand_core", ] [[package]] @@ -2346,16 +1802,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.10", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", + "getrandom", ] [[package]] @@ -2367,26 +1814,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "ref-cast" -version = "1.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43faa91b1c8b36841ee70e97188a869d37ae21759da6846d4be66de5bf7b12c" -dependencies = [ - "ref-cast-impl", -] - -[[package]] -name = "ref-cast-impl" -version = "1.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d2275aab483050ab2a7364c1a46604865ee7d6906684e08db0f090acf74f9e7" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.38", -] - [[package]] name = "regex" version = "1.10.2" @@ -2395,17 +1822,8 @@ checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.3", - "regex-syntax 0.8.2", -] - -[[package]] -name = "regex-automata" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" -dependencies = [ - "regex-syntax 0.6.29", + "regex-automata", + "regex-syntax", ] [[package]] @@ -2416,15 +1834,9 @@ checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.2", + "regex-syntax", ] -[[package]] -name = "regex-syntax" -version = "0.6.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" - [[package]] name = "regex-syntax" version = "0.8.2" @@ -2453,7 +1865,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" dependencies = [ "cc", - "getrandom 0.2.10", + "getrandom", "libc", "spin 0.9.8", "untrusted 0.9.0", @@ -2487,20 +1899,6 @@ dependencies = [ "semver", ] -[[package]] -name = "rustix" -version = "0.36.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14e4d67015953998ad0eb82887a0eb0129e18a7e2f3b7b0f6c422fddcd503d62" -dependencies = [ - "bitflags", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys 0.1.4", - "windows-sys 0.45.0", -] - [[package]] name = "rustix" version = "0.37.20" @@ -2511,7 +1909,7 @@ dependencies = [ "errno", "io-lifetimes", "libc", - "linux-raw-sys 0.3.8", + "linux-raw-sys", "windows-sys 0.48.0", ] @@ -2558,12 +1956,6 @@ dependencies = [ "untrusted 0.9.0", ] -[[package]] -name = "rustversion" -version = "1.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" - [[package]] name = "ruzstd" version = "0.4.0" @@ -2581,16 +1973,6 @@ version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" -[[package]] -name = "scale-bits" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dd7aca73785181cc41f0bbe017263e682b585ca660540ba569133901d013ecf" -dependencies = [ - "parity-scale-codec", - "scale-info", -] - [[package]] name = "scale-bits" version = "0.4.0" @@ -2604,52 +1986,24 @@ dependencies = [ [[package]] name = "scale-decode" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0459d00b0dbd2e765009924a78ef36b2ff7ba116292d732f00eb0ed8e465d15" -dependencies = [ - "parity-scale-codec", - "primitive-types", - "scale-bits 0.3.0", - "scale-decode-derive 0.7.0", - "scale-info", - "smallvec", - "thiserror", -] - -[[package]] -name = "scale-decode" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7789f5728e4e954aaa20cadcc370b99096fb8645fca3c9333ace44bb18f30095" +checksum = "7caaf753f8ed1ab4752c6afb20174f03598c664724e0e32628e161c21000ff76" dependencies = [ "derive_more", "parity-scale-codec", "primitive-types", - "scale-bits 0.4.0", - "scale-decode-derive 0.9.0", + "scale-bits", + "scale-decode-derive", "scale-info", "smallvec", ] [[package]] name = "scale-decode-derive" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4391f0dfbb6690f035f6d2a15d6a12f88cc5395c36bcc056db07ffa2a90870ec" -dependencies = [ - "darling 0.14.4", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "scale-decode-derive" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27873eb6005868f8cc72dcfe109fae664cf51223d35387bc2f28be4c28d94c47" +checksum = "d3475108a1b62c7efd1b5c65974f30109a598b2f45f23c9ae030acb9686966db" dependencies = [ "darling 0.14.4", "proc-macro-crate", @@ -2658,21 +2012,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "scale-encode" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0401b7cdae8b8aa33725f3611a051358d5b32887ecaa0fda5953a775b2d4d76" -dependencies = [ - "parity-scale-codec", - "primitive-types", - "scale-bits 0.3.0", - "scale-encode-derive 0.3.0", - "scale-info", - "smallvec", - "thiserror", -] - [[package]] name = "scale-encode" version = "0.5.0" @@ -2682,25 +2021,12 @@ dependencies = [ "derive_more", "parity-scale-codec", "primitive-types", - "scale-bits 0.4.0", - "scale-encode-derive 0.5.0", + "scale-bits", + "scale-encode-derive", "scale-info", "smallvec", ] -[[package]] -name = "scale-encode-derive" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "316e0fb10ec0fee266822bd641bab5e332a4ab80ef8c5b5ff35e5401a394f5a6" -dependencies = [ - "darling 0.14.4", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "scale-encode-derive" version = "0.5.0" @@ -2742,9 +2068,9 @@ dependencies = [ [[package]] name = "scale-value" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6538d1cc1af9c0baf401c57da8a6d4730ef582db0d330d2efa56ec946b5b0283" +checksum = "58223c7691bf0bd46b43c9aea6f0472d1067f378d574180232358d7c6e0a8089" dependencies = [ "base58", "blake2", @@ -2752,9 +2078,9 @@ dependencies = [ "either", "frame-metadata 15.1.0", "parity-scale-codec", - "scale-bits 0.4.0", - "scale-decode 0.9.0", - "scale-encode 0.5.0", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "serde", "yap", @@ -2770,51 +2096,39 @@ dependencies = [ ] [[package]] -name = "schnellru" -version = "0.2.1" +name = "schnorrkel" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" +checksum = "844b7645371e6ecdf61ff246ba1958c29e802881a749ae3fb1993675d210d28d" dependencies = [ - "ahash 0.8.3", - "cfg-if", - "hashbrown 0.13.2", + "arrayref", + "arrayvec 0.7.4", + "curve25519-dalek-ng", + "merlin", + "rand_core", + "sha2 0.9.9", + "subtle-ng", + "zeroize", ] [[package]] name = "schnorrkel" -version = "0.9.1" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862" +checksum = "da18ffd9f2f5d01bc0b3050b37ce7728665f926b4dd1157fe3221b05737d924f" dependencies = [ "arrayref", - "arrayvec 0.5.2", - "curve25519-dalek 2.1.3", - "getrandom 0.1.16", - "merlin 2.0.1", - "rand 0.7.3", - "rand_core 0.5.1", - "sha2 0.8.2", + "arrayvec 0.7.4", + "curve25519-dalek", + "merlin", + "rand", + "rand_core", + "serde_bytes", + "sha2 0.10.8", "subtle", "zeroize", ] -[[package]] -name = "schnorrkel" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "844b7645371e6ecdf61ff246ba1958c29e802881a749ae3fb1993675d210d28d" -dependencies = [ - "arrayref", - "arrayvec 0.7.4", - "curve25519-dalek-ng", - "merlin 3.0.0", - "rand_core 0.6.4", - "serde_bytes", - "sha2 0.9.9", - "subtle-ng", - "zeroize", -] - [[package]] name = "scopeguard" version = "1.1.0" @@ -2833,36 +2147,18 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.24.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1629c9c557ef9b293568b338dddfc8208c98a18c59d722a9d53f859d9c9b62" -dependencies = [ - "secp256k1-sys 0.6.1", -] - -[[package]] -name = "secp256k1" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" -dependencies = [ - "secp256k1-sys 0.8.1", -] - -[[package]] -name = "secp256k1-sys" -version = "0.6.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83080e2c2fc1006e625be82e5d1eb6a43b7fd9578b617fcc55814daf286bba4b" +checksum = "2acea373acb8c21ecb5a23741452acd2593ed44ee3d343e72baaa143bc89d0d5" dependencies = [ - "cc", + "secp256k1-sys", ] [[package]] name = "secp256k1-sys" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e" +checksum = "09e67c467c38fd24bd5499dc9a18183b31575c12ee549197e3e20d57aa4fe3b7" dependencies = [ "cc", ] @@ -2907,9 +2203,9 @@ checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" [[package]] name = "serde" -version = "1.0.190" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91d3c334ca1ee894a2c6f6ad698fe8c435b76d504b13d436f0685d648d6d96f7" +checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" dependencies = [ "serde_derive", ] @@ -2925,9 +2221,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.190" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67c5609f394e5c2bd7fc51efda478004ea80ef42fee983d5c67a65e34f32c0e3" +checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" dependencies = [ "proc-macro2", "quote", @@ -2936,9 +2232,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" dependencies = [ "itoa", "ryu", @@ -2955,19 +2251,7 @@ dependencies = [ "cfg-if", "cpufeatures", "digest 0.9.0", - "opaque-debug 0.3.0", -] - -[[package]] -name = "sha2" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", + "opaque-debug", ] [[package]] @@ -2980,14 +2264,14 @@ dependencies = [ "cfg-if", "cpufeatures", "digest 0.9.0", - "opaque-debug 0.3.0", + "opaque-debug", ] [[package]] name = "sha2" -version = "0.10.7" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", "cpufeatures", @@ -3004,15 +2288,6 @@ dependencies = [ "keccak", ] -[[package]] -name = "sharded-slab" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31" -dependencies = [ - "lazy_static", -] - [[package]] name = "signal-hook" version = "0.3.17" @@ -3032,12 +2307,6 @@ dependencies = [ "libc", ] -[[package]] -name = "signature" -version = "1.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" - [[package]] name = "signature" version = "2.1.0" @@ -3094,11 +2363,11 @@ dependencies = [ "base64 0.21.2", "bip39", "blake2-rfc", - "bs58 0.5.0", + "bs58", "chacha20", "crossbeam-queue", "derive_more", - "ed25519-zebra 4.0.3", + "ed25519-zebra", "either", "event-listener", "fnv", @@ -3109,22 +2378,22 @@ dependencies = [ "hmac 0.12.1", "itertools", "libsecp256k1", - "merlin 3.0.0", + "merlin", "no-std-net", "nom", "num-bigint", "num-rational", "num-traits", - "pbkdf2 0.12.2", + "pbkdf2", "pin-project", "poly1305", - "rand 0.8.5", - "rand_chacha 0.3.1", + "rand", + "rand_chacha", "ruzstd", "schnorrkel 0.10.2", "serde", "serde_json", - "sha2 0.10.7", + "sha2 0.10.8", "sha3", "siphasher", "slab", @@ -3161,8 +2430,8 @@ dependencies = [ "no-std-net", "parking_lot", "pin-project", - "rand 0.8.5", - "rand_chacha 0.3.1", + "rand", + "rand_chacha", "serde", "serde_json", "siphasher", @@ -3203,337 +2472,24 @@ dependencies = [ "futures", "httparse", "log", - "rand 0.8.5", + "rand", "sha-1", ] -[[package]] -name = "sp-application-crypto" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899492ea547816d5dfe9a5a2ecc32f65a7110805af6da3380aa4902371b31dc2" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-io", - "sp-std", -] - -[[package]] -name = "sp-arithmetic" -version = "16.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb6020576e544c6824a51d651bc8df8e6ab67cd59f1c9ac09868bb81a5199ded" -dependencies = [ - "integer-sqrt", - "num-traits", - "parity-scale-codec", - "scale-info", - "serde", - "sp-std", - "static_assertions", -] - -[[package]] -name = "sp-core" -version = "21.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f18d9e2f67d8661f9729f35347069ac29d92758b59135176799db966947a7336" -dependencies = [ - "array-bytes", - "bitflags", - "blake2", - "bounded-collections", - "bs58 0.4.0", - "dyn-clonable", - "ed25519-zebra 3.1.0", - "futures", - "hash-db", - "hash256-std-hasher", - "impl-serde", - "lazy_static", - "libsecp256k1", - "log", - "merlin 2.0.1", - "parity-scale-codec", - "parking_lot", - "paste", - "primitive-types", - "rand 0.8.5", - "regex", - "scale-info", - "schnorrkel 0.9.1", - "secp256k1 0.24.3", - "secrecy", - "serde", - "sp-core-hashing", - "sp-debug-derive", - "sp-externalities", - "sp-runtime-interface", - "sp-std", - "sp-storage", - "ss58-registry", - "substrate-bip39", - "thiserror", - "tiny-bip39", - "zeroize", -] - [[package]] name = "sp-core-hashing" -version = "9.0.0" +version = "13.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ee599a8399448e65197f9a6cee338ad192e9023e35e31f22382964c3c174c68" +checksum = "cb8524f01591ee58b46cd83c9dbc0fcffd2fd730dabec4f59326cd58a00f17e2" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", - "sha2 0.10.7", + "sha2 0.10.8", "sha3", - "sp-std", "twox-hash", ] -[[package]] -name = "sp-debug-derive" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f531814d2f16995144c74428830ccf7d94ff4a7749632b83ad8199b181140c" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.38", -] - -[[package]] -name = "sp-externalities" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0f71c671e01a8ca60da925d43a1b351b69626e268b8837f8371e320cf1dd100" -dependencies = [ - "environmental", - "parity-scale-codec", - "sp-std", - "sp-storage", -] - -[[package]] -name = "sp-io" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d597e35a9628fe7454b08965b2442e3ec0f264b0a90d41328e87422cec02e99" -dependencies = [ - "bytes", - "ed25519 1.5.3", - "ed25519-dalek", - "futures", - "libsecp256k1", - "log", - "parity-scale-codec", - "rustversion", - "secp256k1 0.24.3", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime-interface", - "sp-state-machine", - "sp-std", - "sp-tracing", - "sp-trie", - "tracing", - "tracing-core", -] - -[[package]] -name = "sp-keystore" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be3cdd67cc1d9c1db17c5cbc4ec4924054a8437009d167f21f6590797e4aa45" -dependencies = [ - "futures", - "parity-scale-codec", - "parking_lot", - "sp-core", - "sp-externalities", - "thiserror", -] - -[[package]] -name = "sp-panic-handler" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd2de46003fa8212426838ca71cd42ee36a26480ba9ffea983506ce03131033" -dependencies = [ - "backtrace", - "lazy_static", - "regex", -] - -[[package]] -name = "sp-runtime" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21c5bfc764a1a8259d7e8f7cfd22c84006275a512c958d3ff966c92151e134d5" -dependencies = [ - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "paste", - "rand 0.8.5", - "scale-info", - "serde", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-std", - "sp-weights", -] - -[[package]] -name = "sp-runtime-interface" -version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e676128182f90015e916f806cba635c8141e341e7abbc45d25525472e1bbce8" -dependencies = [ - "bytes", - "impl-trait-for-tuples", - "parity-scale-codec", - "primitive-types", - "sp-externalities", - "sp-runtime-interface-proc-macro", - "sp-std", - "sp-storage", - "sp-tracing", - "sp-wasm-interface", - "static_assertions", -] - -[[package]] -name = "sp-runtime-interface-proc-macro" -version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5d5bd5566fe5633ec48dfa35ab152fd29f8a577c21971e1c6db9f28afb9bbb9" -dependencies = [ - "Inflector", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.38", -] - -[[package]] -name = "sp-state-machine" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ef45d31f9e7ac648f8899a0cd038a3608f8499028bff55b6c799702592325b6" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "parking_lot", - "rand 0.8.5", - "smallvec", - "sp-core", - "sp-externalities", - "sp-panic-handler", - "sp-std", - "sp-trie", - "thiserror", - "tracing", -] - -[[package]] -name = "sp-std" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53458e3c57df53698b3401ec0934bea8e8cfce034816873c0b0abbd83d7bac0d" - -[[package]] -name = "sp-storage" -version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94294be83f11d4958cfea89ed5798f0b6605f5defc3a996948848458abbcc18e" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "ref-cast", - "serde", - "sp-debug-derive", - "sp-std", -] - -[[package]] -name = "sp-tracing" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357f7591980dd58305956d32f8f6646d0a8ea9ea0e7e868e46f53b68ddf00cec" -dependencies = [ - "parity-scale-codec", - "sp-std", - "tracing", - "tracing-core", - "tracing-subscriber", -] - -[[package]] -name = "sp-trie" -version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48e4eeb7ef23f79eba8609db79ef9cef242f994f1f87a3c0387b4b5f177fda74" -dependencies = [ - "ahash 0.8.3", - "hash-db", - "hashbrown 0.13.2", - "lazy_static", - "memory-db", - "nohash-hasher", - "parity-scale-codec", - "parking_lot", - "scale-info", - "schnellru", - "sp-core", - "sp-std", - "thiserror", - "tracing", - "trie-db", - "trie-root", -] - -[[package]] -name = "sp-wasm-interface" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19c122609ca5d8246be6386888596320d03c7bc880959eaa2c36bcd5acd6846" -dependencies = [ - "anyhow", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "sp-std", - "wasmtime", -] - -[[package]] -name = "sp-weights" -version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45d084c735544f70625b821c3acdbc7a2fc1893ca98b85f1942631284692c75b" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "smallvec", - "sp-arithmetic", - "sp-core", - "sp-debug-derive", - "sp-std", -] - [[package]] name = "spin" version = "0.5.2" @@ -3546,27 +2502,6 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" -[[package]] -name = "ss58-registry" -version = "1.40.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb47a8ad42e5fc72d5b1eb104a5546937eaf39843499948bb666d6e93c62423b" -dependencies = [ - "Inflector", - "num-format", - "proc-macro2", - "quote", - "serde", - "serde_json", - "unicode-xid", -] - -[[package]] -name = "stable_deref_trait" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" - [[package]] name = "static_assertions" version = "1.1.0" @@ -3579,24 +2514,11 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" -[[package]] -name = "substrate-bip39" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49eee6965196b32f882dd2ee85a92b1dbead41b04e53907f269de3b0dc04733c" -dependencies = [ - "hmac 0.11.0", - "pbkdf2 0.8.0", - "schnorrkel 0.9.1", - "sha2 0.9.9", - "zeroize", -] - [[package]] name = "subtle" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "subtle-ng" @@ -3620,9 +2542,9 @@ dependencies = [ "jsonrpsee", "parity-scale-codec", "primitive-types", - "scale-bits 0.4.0", - "scale-decode 0.9.0", - "scale-encode 0.5.0", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "scale-value", "serde", @@ -3698,12 +2620,12 @@ dependencies = [ "hex", "hmac 0.12.1", "parity-scale-codec", - "pbkdf2 0.12.2", + "pbkdf2", "regex", - "schnorrkel 0.10.2", - "secp256k1 0.27.0", + "schnorrkel 0.11.3", + "secp256k1", "secrecy", - "sha2 0.10.7", + "sha2 0.10.8", "sp-core-hashing", "subxt", "thiserror", @@ -3738,12 +2660,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" -[[package]] -name = "target-lexicon" -version = "0.12.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1c7f239eb94671427157bd93b3694320f3668d4e1eff08c7285366fd777fac" - [[package]] name = "thiserror" version = "1.0.50" @@ -3784,35 +2700,6 @@ dependencies = [ "syn 2.0.38", ] -[[package]] -name = "thread_local" -version = "1.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" -dependencies = [ - "cfg-if", - "once_cell", -] - -[[package]] -name = "tiny-bip39" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62cc94d358b5a1e84a5cb9109f559aa3c4d634d2b1b4de3d0fa4adc7c78e2861" -dependencies = [ - "anyhow", - "hmac 0.12.1", - "once_cell", - "pbkdf2 0.11.0", - "rand 0.8.5", - "rustc-hash", - "sha2 0.10.7", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tinyvec" version = "1.6.0" @@ -3830,9 +2717,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.33.0" +version = "1.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f38200e3ef7995e5ef13baec2f432a6da0aa9ac495b2c0e8f3b7eec2c92d653" +checksum = "d0c014766411e834f7af5b8f4cf46257aab4036ca95e9d2c144a10f59ad6f5b9" dependencies = [ "backtrace", "bytes", @@ -3847,9 +2734,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" +checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", @@ -3966,72 +2853,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" -dependencies = [ - "lazy_static", - "log", - "tracing-core", -] - -[[package]] -name = "tracing-serde" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" -dependencies = [ - "serde", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" -dependencies = [ - "ansi_term", - "chrono", - "lazy_static", - "matchers", - "regex", - "serde", - "serde_json", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", - "tracing-serde", -] - -[[package]] -name = "trie-db" -version = "0.27.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" -dependencies = [ - "hash-db", - "hashbrown 0.13.2", - "log", - "rustc-hex", - "smallvec", -] - -[[package]] -name = "trie-root" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" -dependencies = [ - "hash-db", ] [[package]] @@ -4048,7 +2869,6 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "rand 0.7.3", "static_assertions", ] @@ -4091,12 +2911,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-xid" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" - [[package]] name = "universal-hash" version = "0.5.1" @@ -4130,12 +2944,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "valuable" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" - [[package]] name = "version_check" version = "0.9.4" @@ -4157,12 +2965,6 @@ dependencies = [ "try-lock", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -4254,16 +3056,6 @@ dependencies = [ "paste", ] -[[package]] -name = "wasmparser" -version = "0.102.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48134de3d7598219ab9eaf6b91b15d8e50d31da76b8519fe4ecfcec2cf35104b" -dependencies = [ - "indexmap 1.9.3", - "url", -] - [[package]] name = "wasmparser-nostd" version = "0.100.1" @@ -4273,138 +3065,6 @@ dependencies = [ "indexmap-nostd", ] -[[package]] -name = "wasmtime" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f907fdead3153cb9bfb7a93bbd5b62629472dc06dee83605358c64c52ed3dda9" -dependencies = [ - "anyhow", - "bincode", - "cfg-if", - "indexmap 1.9.3", - "libc", - "log", - "object", - "once_cell", - "paste", - "psm", - "serde", - "target-lexicon", - "wasmparser", - "wasmtime-environ", - "wasmtime-jit", - "wasmtime-runtime", - "windows-sys 0.45.0", -] - -[[package]] -name = "wasmtime-asm-macros" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3b9daa7c14cd4fa3edbf69de994408d5f4b7b0959ac13fa69d465f6597f810d" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "wasmtime-environ" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a990198cee4197423045235bf89d3359e69bd2ea031005f4c2d901125955c949" -dependencies = [ - "anyhow", - "cranelift-entity", - "gimli", - "indexmap 1.9.3", - "log", - "object", - "serde", - "target-lexicon", - "thiserror", - "wasmparser", - "wasmtime-types", -] - -[[package]] -name = "wasmtime-jit" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0de48df552cfca1c9b750002d3e07b45772dd033b0b206d5c0968496abf31244" -dependencies = [ - "addr2line", - "anyhow", - "bincode", - "cfg-if", - "cpp_demangle", - "gimli", - "log", - "object", - "rustc-demangle", - "serde", - "target-lexicon", - "wasmtime-environ", - "wasmtime-jit-icache-coherence", - "wasmtime-runtime", - "windows-sys 0.45.0", -] - -[[package]] -name = "wasmtime-jit-debug" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e0554b84c15a27d76281d06838aed94e13a77d7bf604bbbaf548aa20eb93846" -dependencies = [ - "once_cell", -] - -[[package]] -name = "wasmtime-jit-icache-coherence" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aecae978b13f7f67efb23bd827373ace4578f2137ec110bbf6a4a7cde4121bbd" -dependencies = [ - "cfg-if", - "libc", - "windows-sys 0.45.0", -] - -[[package]] -name = "wasmtime-runtime" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658cf6f325232b6760e202e5255d823da5e348fdea827eff0a2a22319000b441" -dependencies = [ - "anyhow", - "cc", - "cfg-if", - "indexmap 1.9.3", - "libc", - "log", - "mach", - "memfd", - "memoffset", - "paste", - "rand 0.8.5", - "rustix 0.36.14", - "wasmtime-asm-macros", - "wasmtime-environ", - "wasmtime-jit-debug", - "windows-sys 0.45.0", -] - -[[package]] -name = "wasmtime-types" -version = "8.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f6fffd2a1011887d57f07654dd112791e872e3ff4a2e626aee8059ee17f06f" -dependencies = [ - "cranelift-entity", - "serde", - "thiserror", - "wasmparser", -] - [[package]] name = "web-sys" version = "0.3.64" @@ -4437,15 +3097,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" -dependencies = [ - "windows-targets 0.48.0", -] - [[package]] name = "windows-sys" version = "0.42.0" @@ -4461,37 +3112,13 @@ dependencies = [ "windows_x86_64_msvc 0.42.2", ] -[[package]] -name = "windows-sys" -version = "0.45.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" -dependencies = [ - "windows-targets 0.42.2", -] - [[package]] name = "windows-sys" version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.0", -] - -[[package]] -name = "windows-targets" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" -dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", + "windows-targets", ] [[package]] @@ -4617,8 +3244,8 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" dependencies = [ - "curve25519-dalek 4.1.1", - "rand_core 0.6.4", + "curve25519-dalek", + "rand_core", "serde", "zeroize", ] diff --git a/examples/parachain-example/Cargo.toml b/examples/parachain-example/Cargo.toml index bb959d4092..820d879762 100644 --- a/examples/parachain-example/Cargo.toml +++ b/examples/parachain-example/Cargo.toml @@ -8,10 +8,4 @@ edition = "2021" [dependencies] subxt = { path = "../../subxt" } subxt-signer = { path = "../../signer" } -futures = { version = "0.3.27", default-features = false, features = ["std"] } tokio = { version = "1.28", features = ["macros", "time", "rt-multi-thread"] } -sp-core = "21.0.0" -sp-runtime = "24.0.0" -codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false } -scale-decode = "0.7.0" -scale-encode = "0.3.0" diff --git a/lightclient/Cargo.toml b/lightclient/Cargo.toml index fbcdfe7fd1..69b8cb5d9f 100644 --- a/lightclient/Cargo.toml +++ b/lightclient/Cargo.toml @@ -75,7 +75,6 @@ wasm-bindgen = { workspace = true, optional = true } wasm-bindgen-futures = { workspace = true, optional = true } futures-timer = { workspace = true, optional = true } instant = { workspace = true, optional = true } -tokio-util = { workspace = true, optional = true } pin-project = { workspace = true, optional = true } # Included if "web" feature is enabled, to enable its js feature. diff --git a/signer/Cargo.toml b/signer/Cargo.toml index d8e0398203..11f6e5efdd 100644 --- a/signer/Cargo.toml +++ b/signer/Cargo.toml @@ -55,3 +55,6 @@ getrandom = { workspace = true, optional = true } [dev-dependencies] sp-core = { workspace = true, features = ["std"] } sp-keyring = { workspace = true } + +[package.metadata.cargo-machete] +ignored = ["getrandom"] diff --git a/testing/generate-custom-metadata/Cargo.toml b/testing/generate-custom-metadata/Cargo.toml index dc5bf43066..9ebff6bb13 100644 --- a/testing/generate-custom-metadata/Cargo.toml +++ b/testing/generate-custom-metadata/Cargo.toml @@ -12,7 +12,6 @@ homepage.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -subxt = { workspace = true, features = ["native"] } scale-info = { workspace = true, features = ["bit-vec"] } frame-metadata = { workspace = true } codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "bit-vec"] } diff --git a/testing/test-runtime/Cargo.toml b/testing/test-runtime/Cargo.toml index b9bff1e3f9..45ca2dcd1e 100644 --- a/testing/test-runtime/Cargo.toml +++ b/testing/test-runtime/Cargo.toml @@ -16,3 +16,6 @@ which = { workspace = true } jsonrpsee = { workspace = true, features = ["async-client", "client-ws-transport-native-tls"] } hex = { workspace = true } codec = { workspace = true } + +[package.metadata.cargo-machete] +ignored = ["subxt"] From 403d42ae506366da7cf3b33ca3bb9395ae36fc02 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 17:06:46 +0200 Subject: [PATCH 10/13] ci: Add machete step Signed-off-by: Alexandru Vasile --- .github/workflows/rust.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f8fa1e4da4..e30eaa57f8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -318,3 +318,30 @@ jobs: with: command: clippy args: --all-targets -- -D warnings + machete: + name: "Cargo machete" + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Use substrate-node binary + uses: ./.github/workflows/actions/use-substrate + + - name: Install Rust stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Rust Cache + uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 + + - name: Install cargo-machete + run: cargo install cargo-machete + + - name: Run tests + uses: actions-rs/cargo@v1.0.3 + with: + command: machete From f84329d0991e14a53082d69708233a5350a517f3 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 17:09:13 +0200 Subject: [PATCH 11/13] cargo: Bump rust version Signed-off-by: Alexandru Vasile --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ac558d929b..b2c803ac13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ resolver = "2" authors = ["Parity Technologies "] edition = "2021" version = "0.32.1" -rust-version = "1.70.0" +rust-version = "1.74.0" license = "Apache-2.0 OR GPL-3.0" repository = "https://github.com/paritytech/subxt" documentation = "https://docs.rs/subxt" From 21ebb4220c32731a69fc157257c2dcd96dd13433 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 17:31:37 +0200 Subject: [PATCH 12/13] ci: Rename machete step Signed-off-by: Alexandru Vasile --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e30eaa57f8..323948dfb2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -319,7 +319,7 @@ jobs: command: clippy args: --all-targets -- -D warnings machete: - name: "Cargo machete" + name: "Check unused dependencies" runs-on: ubuntu-latest steps: - name: Checkout sources From dc8cee91717a1240ccaac99014de31c6f5c151b6 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 1 Dec 2023 17:32:15 +0200 Subject: [PATCH 13/13] ci: Rename cargo machete step Signed-off-by: Alexandru Vasile --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 323948dfb2..2858855961 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -341,7 +341,7 @@ jobs: - name: Install cargo-machete run: cargo install cargo-machete - - name: Run tests + - name: Check unused dependencies uses: actions-rs/cargo@v1.0.3 with: command: machete