mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-20 18:56:19 +00:00
[jsonrpsee http client]: support tokio1 & tokio02. (#263)
* [jsonrpsee http client]: support tokio1 & tokio02. * review grumbles: http client make non-optional
This commit is contained in:
1 parent
1a8e0bc63b
commit
02960a3b0e
1 file changed
+5
-2
+5
-2
@@ -17,8 +17,11 @@ keywords = ["parity", "substrate", "blockchain"]
|
|||||||
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
|
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = ["tokio1"]
|
||||||
client = ["substrate-subxt-client"]
|
client = ["substrate-subxt-client"]
|
||||||
|
# jsonrpsee http client can be configured to use tokio02 or tokio1.
|
||||||
|
tokio02 = ["jsonrpsee-http-client/tokio02"]
|
||||||
|
tokio1 = ["jsonrpsee-http-client/tokio1"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
@@ -26,7 +29,7 @@ thiserror = "1.0.24"
|
|||||||
futures = "0.3.13"
|
futures = "0.3.13"
|
||||||
jsonrpsee-types = "=0.2.0-alpha.3"
|
jsonrpsee-types = "=0.2.0-alpha.3"
|
||||||
jsonrpsee-ws-client = "=0.2.0-alpha.3"
|
jsonrpsee-ws-client = "=0.2.0-alpha.3"
|
||||||
jsonrpsee-http-client = "=0.2.0-alpha.3"
|
jsonrpsee-http-client = { version = "=0.2.0-alpha.3", default-features = false }
|
||||||
num-traits = { version = "0.2.14", default-features = false }
|
num-traits = { version = "0.2.14", default-features = false }
|
||||||
serde = { version = "1.0.124", features = ["derive"] }
|
serde = { version = "1.0.124", features = ["derive"] }
|
||||||
serde_json = "1.0.64"
|
serde_json = "1.0.64"
|
||||||
|
|||||||
Reference in new issue
Block a user