Cargo Features

[dependencies]
nimiq-jsonrpc-client = { version = "0.1.0", default-features = false, features = ["http-client", "wasm-websocket-client", "websocket-client"] }
default = http-client, websocket-client

These default features are set whenever nimiq-jsonrpc-client is added without default-features = false somewhere in the dependency tree.

http-client default = reqwest

Affects nimiq-jsonrpc-client::http

wasm-websocket-client = js-sys, tokio, wasm-bindgen, wasm-bindgen-futures, web-sys

Affects nimiq-jsonrpc-client::wasm_websocket

websocket-client default = base64, http, tokio, tokio-tungstenite

Enables rt of tokio

tokio:

Includes basic task execution capabilities

Affects nimiq-jsonrpc-client::websocket

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.

base64 websocket-client
http websocket-client

Enables http ^0.2

js-sys wasm-websocket-client?
reqwest http-client
tokio wasm-websocket-client? websocket-client
tokio-tungstenite websocket-client

Enables tokio-tungstenite ^0.20

wasm-bindgen wasm-websocket-client?
wasm-bindgen-futures wasm-websocket-client?
web-sys wasm-websocket-client?