Cargo Features

[dependencies]
async-jsonrpc-client = { version = "0.3.0", default-features = false, features = ["async-std-runtime", "tokio-runtime", "http-async-std", "http-tokio", "ws-async-std", "ws-tokio"] }
default = tokio-runtime

The tokio-runtime feature is set by default whenever async-jsonrpc-client is added without default-features = false somewhere in the dependency tree.

async-std-runtime = ws-async-std
tokio-runtime default = http-tokio, ws-tokio
http-async-std = anyhow, async-std, surf

HTTP

Affects http_client::HttpClient, error::HttpClientError

http-tokio tokio-runtime = reqwest, tokio

Affects http_client::HttpClient, error::HttpClientError

ws-async-std async-std-runtime? = async-std

WebSocket

Enables async-std-runtime and async-tls of async-tungstenite ^0.13

WebSocket (async-std / tokio)

Affects error::WsClientError

ws-tokio tokio-runtime = tokio

Enables tokio-native-tls and tokio-runtime of async-tungstenite ^0.13

Affects error::WsClientError

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

anyhow http-async-std?

Enables anyhow

HTTP (async-std)

surf http-async-std?
reqwest http-tokio?

Enables reqwest ^0.11

HTTP (tokio)

async-tungstenite ws-async-std? ws-tokio?

Enables async-tungstenite ^0.13

async-std http-async-std? ws-async-std?

Enables async-std

Runtime

tokio http-tokio? ws-tokio?