Browse Source

runtime: Clear pallets dependencies.

Shamil Gadelshin 4 years ago
parent
commit
580566aab1

+ 1 - 3
runtime-modules/common/Cargo.toml

@@ -5,10 +5,9 @@ authors = ['Joystream contributors']
 edition = '2018'
 
 [dependencies]
-serde = { version = "1.0.101", optional = true }
+serde = { version = "1.0.101", optional = true, features = ["derive"] }
 codec = { package = 'parity-scale-codec', version = '1.3.1', default-features = false, features = ['derive'] }
 sp-runtime = { package = 'sp-runtime', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
-sp-arithmetic = { package = 'sp-arithmetic', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 frame-support = { package = 'frame-support', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 system = { package = 'frame-system', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 timestamp = { package = 'pallet-timestamp', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
@@ -19,7 +18,6 @@ std = [
 	'serde',
 	'codec/std',
 	'sp-runtime/std',
-	'sp-arithmetic/std',
 	'frame-support/std',
 	'system/std',
 	'timestamp/std',

+ 0 - 2
runtime-modules/memo/Cargo.toml

@@ -6,7 +6,6 @@ edition = '2018'
 
 [dependencies]
 codec = { package = 'parity-scale-codec', version = '1.3.1', default-features = false, features = ['derive'] }
-sp-runtime = { package = 'sp-runtime', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 sp-arithmetic = { package = 'sp-arithmetic', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 frame-support = { package = 'frame-support', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 system = { package = 'frame-system', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
@@ -16,7 +15,6 @@ common = { package = 'pallet-common', default-features = false, path = '../commo
 default = ['std']
 std = [
 	'codec/std',
-	'sp-runtime/std',
 	'sp-arithmetic/std',
 	'frame-support/std',
 	'system/std',

+ 0 - 5
runtime-modules/recurring-reward/Cargo.toml

@@ -6,12 +6,10 @@ edition = '2018'
 
 [dependencies]
 codec = { package = 'parity-scale-codec', version = '1.3.1', default-features = false, features = ['derive'] }
-rstd = { package = 'sp-std', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 sp-arithmetic = { package = 'sp-arithmetic', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 sp-runtime = { package = 'sp-runtime', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 frame-support = { package = 'frame-support', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 system = { package = 'frame-system', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
-timestamp = { package = 'sp-timestamp', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 minting = { package = 'pallet-token-mint', default-features = false, path = '../token-minting'}
 
 [dev-dependencies]
@@ -19,16 +17,13 @@ sp-io = { package = 'sp-io', default-features = false, git = 'https://github.com
 sp-core = { package = 'sp-core', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 balances = { package = 'pallet-balances', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 
-
 [features]
 default = ['std']
 std = [
 	'codec/std',
-	'rstd/std',
 	'sp-arithmetic/std',
 	'sp-runtime/std',
 	'frame-support/std',
 	'system/std',
-	'timestamp/std',
 	'minting/std',
 ]

+ 0 - 1
runtime-modules/recurring-reward/src/lib.rs

@@ -11,7 +11,6 @@
 use codec::{Codec, Decode, Encode};
 use frame_support::storage::IterableStorageMap;
 use frame_support::{decl_module, decl_storage, ensure, Parameter};
-use rstd::prelude::*;
 use sp_arithmetic::traits::{BaseArithmetic, One, Zero};
 use sp_runtime::traits::{MaybeSerialize, Member};
 

+ 0 - 4
runtime-modules/token-minting/Cargo.toml

@@ -6,12 +6,10 @@ edition = '2018'
 
 [dependencies]
 codec = { package = 'parity-scale-codec', version = '1.3.1', default-features = false, features = ['derive'] }
-rstd = { package = 'sp-std', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 sp-arithmetic = { package = 'sp-arithmetic', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 sp-runtime = { package = 'sp-runtime', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 frame-support = { package = 'frame-support', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 system = { package = 'frame-system', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
-timestamp = { package = 'sp-timestamp', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
 
 [dev-dependencies]
 sp-io = { package = 'sp-io', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '00768a1f21a579c478fe5d4f51e1fa71f7db9fd4'}
@@ -22,10 +20,8 @@ balances = { package = 'pallet-balances', default-features = false, git = 'https
 default = ['std']
 std = [
 	'codec/std',
-	'rstd/std',
 	'sp-arithmetic/std',
 	'sp-runtime/std',
 	'frame-support/std',
 	'system/std',
-	'timestamp/std',
 ]

+ 0 - 3
runtime-modules/token-minting/src/lib.rs

@@ -6,9 +6,6 @@
 // Ensure we're `no_std` when compiling for Wasm.
 #![cfg_attr(not(feature = "std"), no_std)]
 
-#[cfg(feature = "std")]
-use rstd::prelude::*;
-
 use codec::{Codec, Decode, Encode};
 use frame_support::storage::IterableStorageMap;
 use frame_support::traits::Currency;

+ 0 - 2
runtime-modules/token-minting/src/mock.rs

@@ -1,7 +1,5 @@
 #![cfg(test)]
 
-use crate::*;
-
 use crate::{Module, Trait};
 use balances;
 use frame_support::{impl_outer_origin, parameter_types};