From ad5b8afa6e6b4aa0332515cf497d5d26ab7c77f3 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Sat, 12 Jun 2021 02:47:22 +0200 Subject: [PATCH] disable unused schnorrkel feature (#9084) --- substrate/Cargo.lock | 1 - substrate/primitives/core/Cargo.toml | 1 - substrate/primitives/keystore/Cargo.toml | 1 - substrate/primitives/keystore/src/vrf.rs | 1 - 4 files changed, 4 deletions(-) diff --git a/substrate/Cargo.lock b/substrate/Cargo.lock index 4572ed354a..a52f4250b5 100644 --- a/substrate/Cargo.lock +++ b/substrate/Cargo.lock @@ -8247,7 +8247,6 @@ dependencies = [ "merlin", "rand 0.7.3", "rand_core 0.5.1", - "serde", "sha2 0.8.2", "subtle 2.4.0", "zeroize", diff --git a/substrate/primitives/core/Cargo.toml b/substrate/primitives/core/Cargo.toml index 831e62d6f9..0c724d61ae 100644 --- a/substrate/primitives/core/Cargo.toml +++ b/substrate/primitives/core/Cargo.toml @@ -101,7 +101,6 @@ std = [ "rand", "sha2/std", "schnorrkel/std", - "schnorrkel/serde", "regex", "num-traits/std", "tiny-keccak", diff --git a/substrate/primitives/keystore/Cargo.toml b/substrate/primitives/keystore/Cargo.toml index 81404ce344..d4ebfc1c74 100644 --- a/substrate/primitives/keystore/Cargo.toml +++ b/substrate/primitives/keystore/Cargo.toml @@ -34,5 +34,4 @@ default = ["std"] std = [ "serde", "schnorrkel/std", - "schnorrkel/serde", ] diff --git a/substrate/primitives/keystore/src/vrf.rs b/substrate/primitives/keystore/src/vrf.rs index 463a565f9d..04286eea82 100644 --- a/substrate/primitives/keystore/src/vrf.rs +++ b/substrate/primitives/keystore/src/vrf.rs @@ -40,7 +40,6 @@ pub struct VRFTranscriptData { pub items: Vec<(&'static str, VRFTranscriptValue)>, } /// VRF signature data -#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))] pub struct VRFSignature { /// The VRFOutput serialized pub output: VRFOutput,