Cargo.toml 1.57 KiB
Newer Older
[package]
name = "jsonrpsee-ws-client"
David's avatar
David committed
version = "0.2.0"
authors = ["Parity Technologies <[email protected]>", "Pierre Krieger <[email protected]>"]
description = "WebSocket 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-ws-client"

[dependencies]
# Tokio v1 deps
David's avatar
David committed
tokioV1 = { package="tokio", version = "1", features = ["net", "time", "rt-multi-thread", "macros"], optional = true }
tokioV1-rustls = { package="tokio-rustls", version = "0.22", optional = true }
tokioV1-util = { package="tokio-util", version = "0.6", features = ["compat"], optional = true }

# Tokio v0.2 deps
David's avatar
David committed
tokioV02 = { package="tokio", version = "0.2", features = ["net", "time", "rt-threaded", "sync", "macros"], optional = true }
tokioV02-rustls = { package="tokio-rustls", version = "0.15", optional = true }
tokioV02-util = { package="tokio-util", version = "0.3", features = ["compat"], optional = true }
fnv = "1"
futures = { version = "0.3.14", default-features = false, features = ["std"] }
David's avatar
David committed
jsonrpsee-types = { path = "../types", version = "0.2.0" }
log = "0.4"
serde_json = "1"
soketto = "0.6"
pin-project = "1"
thiserror = "1"
url = "2"
rustls = "0.19.1"
rustls-native-certs = "0.5.0"

[dev-dependencies]
jsonrpsee-test-utils = { path = "../test-utils" }

[features]
default = ["tokio1"]
tokio1 = ["tokioV1", "tokioV1-rustls", "tokioV1-util"]
tokio02 = ["tokioV02", "tokioV02-rustls", "tokioV02-util"]