Cargo.toml 1.63 KiB
Newer Older
[package]
name = "jsonrpsee-http-client"
David's avatar
David committed
version = "0.2.0"
authors = ["Parity Technologies <[email protected]>", "Pierre Krieger <[email protected]>"]
description = "HTTP client for JSON-RPC"
edition = "2018"
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
documentation = "https://docs.rs/jsonrpsee-http-client"

[dependencies]
David's avatar
David committed
futures = { version = "0.3.14", default-features = false, features = ["std"] }
hyper13-rustls = { package = "hyper-rustls", version = "0.21", optional = true }
hyper14-rustls = { package = "hyper-rustls", version = "0.22", optional = true }
hyper14 = { package = "hyper", version = "0.14", features = ["client", "http1", "http2", "tcp"], optional = true }
hyper13 = { package = "hyper", version = "0.13", optional = true }
David's avatar
David committed
jsonrpsee-types = { path = "../types", version = "0.2.0" }
jsonrpsee-utils = { path = "../utils", version = "0.2.0", optional = true }
log = "0.4"
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = "1.0"
David's avatar
David committed
tokioV1 = { package = "tokio", version = "1", features = ["time"], optional = true }
tokioV02 = { package = "tokio", version = "0.2", features = ["time"], optional = true }
thiserror = "1.0"
fnv = "1"
[features]
default = ["tokio1"]
David's avatar
David committed
tokio1 = ["hyper14", "hyper14-rustls", "jsonrpsee-utils/hyper_14", "tokioV1" ]
tokio02 = ["hyper13", "hyper13-rustls", "jsonrpsee-utils/hyper_13", "tokioV02" ]
[dev-dependencies]
jsonrpsee-test-utils = { path = "../test-utils" }
David's avatar
David committed
tokioV1 = { package = "tokio", version = "1", features = ["net", "rt-multi-thread", "macros"] }