Cargo Features

[dependencies]
gear-subxt = { version = "0.29.0", default-features = false, features = ["substrate-compat", "integration-tests", "jsonrpsee-ws", "jsonrpsee-web", "unstable-metadata"] }
default = jsonrpsee-ws, substrate-compat

These default features are set whenever gear-subxt is added without default-features = false somewhere in the dependency tree.

substrate-compat default = sp-core, sp-runtime

Activate this feature to pull in extra Substrate dependencies which make it possible to provide a proper extrinsic Signer implementation (PairSigner).

integration-tests

Activate this to expose functionality only used for integration testing.
The exposed functionality is subject to breaking changes at any point,
and should not be relied upon.

jsonrpsee-ws default

Jsonrpsee if the default RPC provider used in Subxt. However, it can be swapped out for an alternative implementation, and so is optional.

Enables async-client and client-ws-transport of jsonrpsee ^0.16

Included if one of the jsonrpsee features is enabled.

Affects online_client::default_rpc_client

jsonrpsee-web

Enables async-wasm-client and client-web-transport of jsonrpsee ^0.16

Affects online_client::default_rpc_client

unstable-metadata

Activate this to fetch and utilize the latest unstabl metadata from a node.
The unstable metadata is subject to breaking changes and the subxt might fail to decode the metadata properly. Use this to experiment with the latest features exposed by the metadata.

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 jsonrpsee-web? jsonrpsee-ws

Enables jsonrpsee ^0.16

sp-core substrate-compat

Enables sp-core ^21.0.0

These are only included is "substrate-compat" is enabled.

sp-runtime substrate-compat

Enables sp-runtime ^24.0.0