Cargo Features

cometbft-rpc has no features set by default.

[dependencies]
cometbft-rpc = { version = "0.1.0-alpha.2", features = ["cli", "http-client", "secp256k1", "websocket-client"] }
default

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

Enables eyre_tracer and std of flex-error

cli = http-client, structopt, tracing-subscriber, websocket-client

Required by the binary

http-client cli? = futures, reqwest, tracing

Enables macros of tokio

Affects transport::http, client::sync, client::Client.wait_until_healthy

secp256k1

Enables secp256k1 of cometbft

websocket-client cli? = async-tungstenite, futures, tracing

Enables fs, macros, sync and time of tokio

Affects transport::websocket, client::sync, client::Client.wait_until_healthy

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.

async-tungstenite websocket-client?

Enables async-tungstenite ^0.24

Optional dependencies

futures http-client? websocket-client?
reqwest http-client?

Enables reqwest ^0.11.20

structopt cli?
tokio http-client? websocket-client?
tracing http-client? websocket-client?
tracing-subscriber cli?