Cargo.toml 1.96 KB
Newer Older
1
2
[package]
name = "jsonrpsee-client-transport"
3
version = "0.15.1"
4
5
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "WebSocket client for JSON-RPC"
6
edition = "2021"
7
8
9
10
11
12
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
documentation = "https://docs.rs/jsonrpsee-ws-client"

[dependencies]
13
14
jsonrpsee-types = { path = "../../types", version = "0.15.1", optional = true }
jsonrpsee-core = { path = "../../core", version = "0.15.1", features = ["client"] }
15
tracing = "0.1.34"
16
17

# optional
18
thiserror = { version = "1", optional = true }
19
20
21
anyhow = { version = "1", optional = true }
futures-channel = { version = "0.3.14", default-features = false, optional = true }
futures-util = { version = "0.3.14", default-features = false, features = ["alloc"], optional = true }
22
http = { version = "0.2", optional = true }
23
tokio-util = { version = "0.7", features = ["compat"], optional = true }
24
25
26
27
28
tokio = { version = "1", features = ["net", "time", "macros"], optional = true }
pin-project = { version = "1", optional = true }
rustls-native-certs = { version = "0.6", optional = true }
webpki-roots = { version = "0.22", optional = true }
tokio-rustls = { version = "0.23", optional = true }
29
futures-timer = { version = "3", optional = true }
30
31
32
33

# ws
soketto = { version = "0.7.1", optional = true }

34
# web-sys
35
gloo-net = { version = "0.2.0", default-features = false, features = ["json", "websocket"], optional = true }
36

37
38
39
[features]
tls = ["tokio-rustls", "webpki-roots", "rustls-native-certs"]
ws = [
40
    "futures-util",
David's avatar
David committed
41
42
43
44
    "http",
    "tokio",
    "tokio-util",
    "soketto",
45
46
47
    "pin-project",
    "jsonrpsee-types",
    "thiserror",
48
49
50
51
52
53
54
55
]
web = [
    "gloo-net",
    "futures-channel",
    "futures-timer",
    "futures-util",
    "anyhow",
    "thiserror",
56
]
57
58
59
60
61
62
63

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.playground]
all-features = true