Cargo Features

celestia-core-rpc has no features set by default.

[dependencies]
celestia-core-rpc = { version = "0.34.0", features = ["cli", "http-client", "secp256k1", "websocket-client"] }
default

These default features are set whenever celestia-core-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, http, hyper, hyper-proxy, hyper-rustls, tracing

Enables fs and macros of tokio

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

secp256k1

Enables secp256k1 of celestia-core

websocket-client cli? = async-tungstenite, futures, http, 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.20

Optional dependencies

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

Enables http ^0.2

hyper http-client?

Enables hyper ^0.14

hyper-proxy http-client?
hyper-rustls http-client?

Enables hyper-rustls ^0.22.1

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

Enables tracing-subscriber ^0.2