From f83b19eaa569a84a89059c03c68250c679d3cfbf Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Tue, 22 Oct 2024 18:55:51 +0200 Subject: [PATCH 1/2] chore(deps): remove unused hex --- Cargo.lock | 7 ------- Cargo.toml | 2 -- 2 files changed, 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 81dfbc4..6900c81 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,7 +161,6 @@ name = "frame-decode" version = "0.4.0" dependencies = [ "frame-metadata 16.0.0", - "hex", "parity-scale-codec", "scale-decode", "scale-info", @@ -234,12 +233,6 @@ dependencies = [ "serde", ] -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - [[package]] name = "impl-trait-for-tuples" version = "0.2.2" diff --git a/Cargo.toml b/Cargo.toml index 1865b1e..a398813 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ default = ["std", "legacy", "error-tracing"] # Require std environment. std = [ "frame-metadata/std", - "hex/std", "parity-scale-codec/std", "scale-decode/std", "scale-info/std", @@ -38,7 +37,6 @@ legacy = [ [dependencies] frame-metadata = { version = "16.0.0", features = ["current"], default-features = false } -hex = { version = "0.4.3", default-features = false } parity-scale-codec = { version = "3.6.12", default-features = false } scale-decode = { version = "0.13.1", default-features = false } scale-info = { version = "2.11.3", default-features = false } From ea17983dc780007141fbe92249a238ea4daccc1e Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Tue, 22 Oct 2024 19:05:24 +0200 Subject: [PATCH 2/2] make hex dev-dependency --- Cargo.lock | 7 +++++++ Cargo.toml | 1 + 2 files changed, 8 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 6900c81..81dfbc4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,6 +161,7 @@ name = "frame-decode" version = "0.4.0" dependencies = [ "frame-metadata 16.0.0", + "hex", "parity-scale-codec", "scale-decode", "scale-info", @@ -233,6 +234,12 @@ dependencies = [ "serde", ] +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + [[package]] name = "impl-trait-for-tuples" version = "0.2.2" diff --git a/Cargo.toml b/Cargo.toml index a398813..6d9789b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,7 @@ scale-value = { version = "0.16.3", default-features = false, optional = true } sp-crypto-hashing = { version = "0.1.0", default-features = false } [dev-dependencies] +hex = "0.4.3" serde_yaml = "0.9" serde_json = "1" scale-value = "0.16.2"