From d0a008de875c79e572669c1831a981859f8fe8a2 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Thu, 19 Nov 2020 15:02:30 +0100 Subject: [PATCH] light-client: Only require Tokio when `rpc-feature` is enabled --- light-client/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/light-client/Cargo.toml b/light-client/Cargo.toml index cfcf7fa21..0484ba28a 100644 --- a/light-client/Cargo.toml +++ b/light-client/Cargo.toml @@ -23,7 +23,7 @@ crate-type = ["cdylib", "rlib"] [features] default = ["rpc-client"] -rpc-client = ["tendermint-rpc/http-client"] +rpc-client = ["tokio", "tendermint-rpc/http-client"] secp256k1 = ["tendermint/secp256k1", "tendermint-rpc/secp256k1"] [dependencies] @@ -41,7 +41,7 @@ serde_derive = "1.0.106" sled = "0.34.3" static_assertions = "1.1.0" thiserror = "1.0.15" -tokio = "0.2.20" +tokio = { version = "0.2.20", optional = true } [dev-dependencies] tendermint-testgen = { path = "../testgen"}