Cargo Features

jsonrpsee has no features set by default.

jsonrpsee = { version = "0.22.4", features = ["full", "client-ws-transport-native-tls", "client-ws-transport-webpki-tls", "client-ws-transport-no-tls", "client-web-transport", "async-client", "async-wasm-client", "http-client", "wasm-client", "ws-client", "macros", "client", "client-core", "server", "server-core"] }
full = client, macros, server
client-ws-transport-native-tls client?

Enables native-tls and ws of jsonrpsee-client-transport

client-ws-transport-webpki-tls client?

Enables webpki-tls and ws of jsonrpsee-client-transport


Enables ws of jsonrpsee-client-transport

client-web-transport client?

Enables web of jsonrpsee-client-transport

async-client client?

Enables async-client of jsonrpsee-core

async-wasm-client client?

Enables async-wasm-client of jsonrpsee-core

http-client client? = jsonrpsee-http-client, jsonrpsee-types

Enables client of jsonrpsee-core

wasm-client client? = jsonrpsee-types, jsonrpsee-wasm-client

Enables client of jsonrpsee-core

ws-client client? = jsonrpsee-types, jsonrpsee-ws-client

Enables client of jsonrpsee-core

macros full? = jsonrpsee-proc-macros, jsonrpsee-types, tracing
client full? = async-client, async-wasm-client, client-core, client-web-transport, client-ws-transport-native-tls, client-ws-transport-webpki-tls, http-client, wasm-client, ws-client
client-core client?

Enables client of jsonrpsee-core

server full? = jsonrpsee-server, jsonrpsee-types, server-core, tokio
server-core server?

Enables server of jsonrpsee-core

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.

jsonrpsee-http-client http-client?

Enables jsonrpsee-http-client

No support for namespaced features yet so workspace dependencies are prefixed with jsonrpsee-. See for more details.

jsonrpsee-ws-client ws-client?
jsonrpsee-wasm-client wasm-client?
jsonrpsee-client-transport client-web-transport? client-ws-transport-native-tls? client-ws-transport-no-tls? client-ws-transport-webpki-tls?
jsonrpsee-server server?
jsonrpsee-proc-macros macros?
jsonrpsee-core async-client? async-wasm-client? client-core? http-client? server-core? wasm-client? ws-client?
jsonrpsee-types http-client? macros? server? wasm-client? ws-client?
tracing macros?
tokio server?