Skip to content

Commit

Permalink
light-client: Only require Tokio when rpc-feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 19, 2020
1 parent aa36b33 commit d0a008d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions light-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"}
Expand Down

0 comments on commit d0a008d

Please sign in to comment.