From f1b8ee4e6ea1072d605594612724a99cccb47650 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 9 Dec 2019 17:47:57 +0000 Subject: [PATCH] sp-transaction-pool-api: make default std, remove unused sp-core dependency (#4335) * transaction-pool-api: use primitives/std * transaction-pool-api: make primitives default-features = false * transaction-pool-api: make default feature std * transaction-pool-api: remove redundant primitives dependency --- substrate/Cargo.lock | 1 - substrate/primitives/transaction-pool/Cargo.toml | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/substrate/Cargo.lock b/substrate/Cargo.lock index 0fab5b2a5c..e85290ceec 100644 --- a/substrate/Cargo.lock +++ b/substrate/Cargo.lock @@ -6437,7 +6437,6 @@ dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)", "sp-api 2.0.0", - "sp-core 2.0.0", "sp-runtime 2.0.0", ] diff --git a/substrate/primitives/transaction-pool/Cargo.toml b/substrate/primitives/transaction-pool/Cargo.toml index 13563cc08f..456d1f94e6 100644 --- a/substrate/primitives/transaction-pool/Cargo.toml +++ b/substrate/primitives/transaction-pool/Cargo.toml @@ -9,18 +9,17 @@ codec = { package = "parity-scale-codec", version = "1.0.0", optional = true } derive_more = { version = "0.99.2", optional = true } futures = { version = "0.3.1", optional = true } log = { version = "0.4.8", optional = true } -primitives = { package = "sp-core", path = "../core", optional = true} serde = { version = "1.0.101", features = ["derive"], optional = true} sp-api = { path = "../sr-api", default-features = false } sp-runtime = { path = "../runtime", default-features = false } [features] +default = [ "std" ] std = [ "codec", "derive_more", "futures", "log", - "primitives", "serde", "sp-api/std", "sp-runtime/std",