diff --git a/client/Cargo.toml b/client/Cargo.toml index 26e3795775..9d2d1c7b37 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -15,7 +15,7 @@ description = "Embed a substrate node into your subxt application." keywords = ["parity", "substrate", "blockchain"] [dependencies] -async-std = "1.8.0" +async-std = { version = "1.8.0", features = ["tokio1"] } futures = "0.3.9" jsonrpsee = { git = "https://github.com/paritytech/jsonrpsee/", branch = "extract-async-client", features = ["client"] } log = "0.4.13" diff --git a/client/src/tests.rs b/client/src/tests.rs index e7eabc311c..bf22a63b07 100644 --- a/client/src/tests.rs +++ b/client/src/tests.rs @@ -1,7 +1,19 @@ -use node_cli::service::NewFullBase; -use sp_keyring::AccountKeyring; -use subxt::{ClientBuilder, PairSigner}; -use test_runtime::node_runtime::{self, system, DefaultConfig} +// Copyright 2019-2021 Parity Technologies (UK) Ltd. +// This file is part of subxt. +// +// subxt is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// subxt is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with subxt. If not, see . + use crate::{ DatabaseSource, KeystoreConfig, @@ -10,7 +22,18 @@ use crate::{ SubxtClientConfig, WasmExecutionMethod, }; +use node_cli::service::NewFullBase; +use sp_keyring::AccountKeyring; +use subxt::{ + ClientBuilder, + PairSigner, +}; use tempdir::TempDir; +use test_runtime::node_runtime::{ + self, + system, + DefaultConfig, +}; #[async_std::test] pub async fn test_embedded_client() {