Cargo Features
[dependencies]
subxt-rpcs = { version = "0.41.0", default-features = false, features = ["subxt", "jsonrpsee", "unstable-light-client", "reconnecting-rpc-client", "mock-rpc-client", "native", "web"] }
- default = jsonrpsee, native
-
These default features are set whenever
subxt-rpcs
is added without
somewhere in the dependency tree.default-features = false - subxt
-
Enables subxt-core
Included with the subxt-core feature to impl Config for RpcConfig
- jsonrpsee default reconnecting-rpc-client?
-
Enables jsonrpsee and tokio-util
jsonrpsee:
Included with the jsonrpsee feature
- unstable-light-client
-
Enables subxt-lightclient
Included with the lightclient feature
- reconnecting-rpc-client = jsonrpsee
-
Enables sync of tokio and finito
Included with the reconnecting-rpc-client feature
- mock-rpc-client
- native default
-
Enable this for native (ie non web/wasm builds).
Exactly 1 of "web" and "native" is expected.Enables async-client, client-ws-transport-tls and ws-client of optional jsonrpsee, native of optional subxt-lightclient
Affects
platform::ws_client
… - web
-
Enable this for web/wasm builds.
Exactly 1 of "web" and "native" is expected.Enables js of getrandom ^0.2, wasm-bindgen of optional finito, async-wasm-client, client-web-transport and wasm-client of optional jsonrpsee, web of optional subxt-lightclient and wasm-bindgen-futures
Included with WASM feature
Affects
platform::ws_client
…
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.
- getrandom web?
-
Enables getrandom ^0.2