From a406dd5223a56072f6c05d490c2ee9ef0264ac47 Mon Sep 17 00:00:00 2001 From: yjh Date: Tue, 25 Jun 2024 19:34:06 +0800 Subject: [PATCH] chore: remove unused rustc-hex deps; enable rustc-hex for primitive-types in sp-core (#4860) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some primitives have impl Hex related traits enabled by `rustc-hex` feature. People wanna use H256/H160 maybe need these trait impls --------- Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher --- Cargo.lock | 3 --- bridges/snowbridge/primitives/router/Cargo.toml | 1 - polkadot/runtime/parachains/Cargo.toml | 2 -- polkadot/runtime/westend/Cargo.toml | 2 -- 4 files changed, 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 22564aa9cae3..8052bcceee64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13917,7 +13917,6 @@ dependencies = [ "rand 0.8.5", "rand_chacha 0.3.1", "rstest", - "rustc-hex", "sc-keystore", "scale-info", "serde", @@ -19367,7 +19366,6 @@ dependencies = [ "hex-literal", "log", "parity-scale-codec", - "rustc-hex", "scale-info", "snowbridge-core", "sp-core", @@ -23350,7 +23348,6 @@ dependencies = [ "polkadot-primitives", "polkadot-runtime-common", "polkadot-runtime-parachains", - "rustc-hex", "scale-info", "serde", "serde_derive", diff --git a/bridges/snowbridge/primitives/router/Cargo.toml b/bridges/snowbridge/primitives/router/Cargo.toml index d744aa7f1d4b..ee8d481cec12 100644 --- a/bridges/snowbridge/primitives/router/Cargo.toml +++ b/bridges/snowbridge/primitives/router/Cargo.toml @@ -30,7 +30,6 @@ snowbridge-core = { workspace = true } hex-literal = { workspace = true, default-features = true } [dev-dependencies] -rustc-hex = { workspace = true, default-features = true } [features] default = ["std"] diff --git a/polkadot/runtime/parachains/Cargo.toml b/polkadot/runtime/parachains/Cargo.toml index 284b81e8697b..82ba22a70f37 100644 --- a/polkadot/runtime/parachains/Cargo.toml +++ b/polkadot/runtime/parachains/Cargo.toml @@ -14,7 +14,6 @@ impl-trait-for-tuples = { workspace = true } bitvec = { features = ["alloc"], workspace = true } codec = { features = ["derive", "max-encoded-len"], workspace = true } log = { workspace = true } -rustc-hex = { workspace = true } scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], workspace = true } derive_more = { workspace = true, default-features = true } @@ -98,7 +97,6 @@ std = [ "polkadot-runtime-metrics/std", "rand/std", "rand_chacha/std", - "rustc-hex/std", "scale-info/std", "serde/std", "sp-api/std", diff --git a/polkadot/runtime/westend/Cargo.toml b/polkadot/runtime/westend/Cargo.toml index 09d78edeaaba..f6e8dfc78165 100644 --- a/polkadot/runtime/westend/Cargo.toml +++ b/polkadot/runtime/westend/Cargo.toml @@ -15,7 +15,6 @@ bitvec = { features = ["alloc"], workspace = true } codec = { features = ["derive", "max-encoded-len"], workspace = true } scale-info = { features = ["derive"], workspace = true } log = { workspace = true } -rustc-hex = { workspace = true } serde = { workspace = true } serde_derive = { optional = true, workspace = true } smallvec = { workspace = true, default-features = true } @@ -201,7 +200,6 @@ std = [ "polkadot-primitives/std", "polkadot-runtime-common/std", "polkadot-runtime-parachains/std", - "rustc-hex/std", "scale-info/std", "serde/std", "serde_derive",