Cargo.toml 1.21 KB
Newer Older
Niklas Adolfsson's avatar
Niklas Adolfsson committed
1
2
[package]
name = "jsonrpsee-http-client"
3
version = "0.2.0-alpha.5"
Niklas Adolfsson's avatar
Niklas Adolfsson committed
4
5
6
7
8
9
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "HTTP client for JSON-RPC"
edition = "2018"
license = "MIT"

[dependencies]
10
async-trait = "0.1"
11
12
hyper13-rustls = { package = "hyper-rustls", version = "0.21", optional = true }
hyper14-rustls = { package = "hyper-rustls", version = "0.22", optional = true }
13
14
hyper14 = { package = "hyper", version = "0.14", features = ["client", "http1", "http2", "tcp"], optional = true }
hyper13 = { package = "hyper", version = "0.13", optional = true }
15
16
jsonrpsee-types = { path = "../types", version = "0.2.0-alpha.5" }
jsonrpsee-utils = { path = "../utils", version = "0.2.0-alpha.5", optional = true }
Niklas Adolfsson's avatar
Niklas Adolfsson committed
17
18
19
20
log = "0.4"
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
21
url = "2.2"
22
fnv = "1"
Niklas Adolfsson's avatar
Niklas Adolfsson committed
23

24
25
[features]
default = ["tokio1"]
Niklas Adolfsson's avatar
Niklas Adolfsson committed
26
27
tokio1 = ["hyper14", "hyper14-rustls", "jsonrpsee-utils/hyper_14"]
tokio02 = ["hyper13", "hyper13-rustls", "jsonrpsee-utils/hyper_13"]
28

Niklas Adolfsson's avatar
Niklas Adolfsson committed
29
30
31
[dev-dependencies]
jsonrpsee-test-utils = { path = "../test-utils" }
tokio = { version = "1.0", features = ["net", "rt-multi-thread", "macros"] }