From 55aafa25d8354cdebd99eeffddbbbd80c5cc1e50 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 6 Dec 2021 11:17:39 +0100 Subject: [PATCH] Simpler dependencies (#353) * Don't re-export sp-arithmetic Add sp-arithmetic to dev-dependencies Don't use any default features * Update Cargo.toml Co-authored-by: Niklas Adolfsson * Update Cargo.toml Co-authored-by: Niklas Adolfsson * Update Cargo.toml Co-authored-by: Niklas Adolfsson Co-authored-by: Niklas Adolfsson --- Cargo.toml | 7 +++---- src/lib.rs | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e7141690f1..604562f4c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,14 +34,14 @@ url = "2.2.1" subxt-macro = { version = "0.1.0", path = "macro" } -sp-arithmetic = { package = "sp-arithmetic", git = "https://github.com/paritytech/substrate/", branch = "master" } -sp-core = { package = "sp-core", git = "https://github.com/paritytech/substrate/", branch = "master" } -sp-runtime = { package = "sp-runtime", git = "https://github.com/paritytech/substrate/", branch = "master" } +sp-core = { git = "https://github.com/paritytech/substrate/", branch = "master", default-features = false } +sp-runtime = { git = "https://github.com/paritytech/substrate/", branch = "master", default-features = false } sp-version = { package = "sp-version", git = "https://github.com/paritytech/substrate/", branch = "master" } frame-metadata = "14.0.0" [dev-dependencies] +sp-arithmetic = { git = "https://github.com/paritytech/substrate/", branch = "master", default-features = false } assert_matches = "1.5.0" async-std = { version = "1.9.0", features = ["attributes", "tokio1"] } env_logger = "0.8.3" @@ -51,4 +51,3 @@ which = "4.0.2" test-runtime = { path = "test-runtime" } sp-keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate/", branch = "master" } - diff --git a/src/lib.rs b/src/lib.rs index 4784d46600..dbd4dbeb2d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,7 +45,6 @@ pub use subxt_macro::subxt; pub use bitvec; pub use codec; -pub use sp_arithmetic; pub use sp_core; pub use sp_runtime;