Make use of parity-codec "derive" crate feature (#1919)

* Make use of parity-codec "derive" crate feature

* Bump impl_version

* Update wasm files and Cargo.lock files

* Transferred to parity_codec derive feature for the rest of the crates

* Update wasm binaries and lock files

* Update core and node wasm binaries
This commit is contained in:
Hero Bird
2019-03-05 09:00:37 +01:00
committed by Bastian Köcher
parent 755b53bd05
commit 128d164f2b
85 changed files with 88 additions and 221 deletions
@@ -16,7 +16,7 @@
#[cfg(feature = "std")]
use serde::{Serialize, Serializer, Deserialize, Deserializer};
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
use crate::H256;
/// An identifier for an authority in the consensus algorithm. The same size as ed25519::Public.
@@ -18,7 +18,7 @@
#[cfg(any(feature = "std", test))]
use serde_derive::{Serialize, Deserialize};
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
/// Substrate changes trie configuration.
#[cfg_attr(any(feature = "std", test), derive(Serialize, Deserialize))]
+1 -1
View File
@@ -23,7 +23,7 @@ use blake2_rfc;
use ring::{rand, signature, signature::KeyPair};
use crate::{hash::H512, Ed25519AuthorityId};
use base58::{ToBase58, FromBase58};
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
#[cfg(feature = "std")]
use serde::{de, Serializer, Deserializer, Deserialize};
+1 -1
View File
@@ -34,7 +34,7 @@ macro_rules! map {
use rstd::prelude::*;
use rstd::ops::Deref;
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
#[cfg(feature = "std")]
use std::borrow::Cow;
#[cfg(feature = "std")]
+1 -3
View File
@@ -16,9 +16,7 @@
//! Definition of a sandbox environment.
#[cfg(test)]
use parity_codec::Encode;
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
use rstd::vec::Vec;
/// Error error that can be returned from host function.
+1 -1
View File
@@ -23,7 +23,7 @@ use blake2_rfc;
use rand::rngs::OsRng;
use schnorrkel::{signing_context, Keypair, MiniSecretKey, PublicKey};
use sha2::Sha512;
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
use crate::hash::H512;
#[cfg(feature = "std")]