difftreelog
fix serde no_std usage
in: master
6 files changed
pallets/inflation/Cargo.tomldiffbeforeafterboth19version = '2.0.0'19version = '2.0.0'202021[dependencies]21[dependencies]22serde = { version = "1.0.119" }22serde = { default-features = false, version = "1.0.119", features = ["derive"] }23frame-support = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }23frame-support = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }24frame-system = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }24frame-system = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }25pallet-balances = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }25pallet-balances = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }pallets/inflation/src/lib.rsdiffbeforeafterboth10#[cfg(feature = "std")]10#[cfg(feature = "std")]11pub use std::*;11pub use std::*;121213#[cfg(feature = "std")]14pub use serde::*;13pub use serde::{Serialize, Deserialize};151416#[cfg(feature = "runtime-benchmarks")]15#[cfg(feature = "runtime-benchmarks")]17mod benchmarking;16mod benchmarking;pallets/nft/Cargo.tomldiffbeforeafterboth19version = '2.0.0'19version = '2.0.0'202021[dependencies]21[dependencies]22serde = { version = "1.0.119" }22serde = { default-features = false, version = "1.0.119", features = ["derive"] }23frame-support = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }23frame-support = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }24frame-system = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }24frame-system = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }25pallet-balances = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }25pallet-balances = { default-features = false, version = '3.0.0', git = "https://github.com/paritytech/substrate.git", branch = "frontier" }pallets/nft/src/eth/account.rsdiffbeforeafterboth2use codec::{Encode, EncodeLike, Decode};2use codec::{Encode, EncodeLike, Decode};3use sp_core::{H160, H256, crypto::AccountId32};3use sp_core::{H160, H256, crypto::AccountId32};4use core::cmp::Ordering;4use core::cmp::Ordering;5#[cfg(feature = "std")]6use serde::{Serialize, Deserialize};5use serde::{Serialize, Deserialize};7use pallet_evm::AddressMapping;6use pallet_evm::AddressMapping;8use sp_std::vec::Vec;7use sp_std::vec::Vec;21}20}222123#[derive(Eq)]22#[derive(Eq)]24#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]23#[derive(Serialize, Deserialize)]25pub struct BasicCrossAccountId<T: Config> {24pub struct BasicCrossAccountId<T: Config> {26 /// If true - then ethereum is canonical encoding25 /// If true - then ethereum is canonical encoding27 from_ethereum: bool,26 from_ethereum: bool,pallets/nft/src/lib.rsdiffbeforeafterboth778#![cfg_attr(not(feature = "std"), no_std)]8#![cfg_attr(not(feature = "std"), no_std)]9910#[cfg(feature = "std")]1011pub use serde::*;11pub use serde::{Serialize, Deserialize};121213use core::ops::{Deref, DerefMut};13use core::ops::{Deref, DerefMut};14use codec::{Decode, Encode};14use codec::{Decode, Encode};71pub type DecimalPoints = u8;71pub type DecimalPoints = u8;727273#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]73#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]74#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]74#[derive(Serialize, Deserialize)]75pub enum CollectionMode {75pub enum CollectionMode {76 Invalid,76 Invalid,77 NFT,77 NFT,pallets/nft/src/types.rsdiffbeforeafterboth1#[cfg(feature = "std")]1#[cfg(feature = "std")]2pub use std::*;2pub use std::*;334#[cfg(feature = "std")]5pub use serde::*;4pub use serde::{Serealize, Deserialize};657use codec::{Decode, Encode};6use codec::{Decode, Encode};87