Cargo Features

[dependencies]
alloy-provider = { version = "0.6.4", default-features = false, features = ["pubsub", "reqwest", "hyper", "ws", "ipc", "reqwest-default-tls", "reqwest-rustls-tls", "reqwest-native-tls", "admin-api", "anvil-api", "anvil-node", "debug-api", "erc4337-api", "engine-api", "net-api", "trace-api", "rpc-api", "txpool-api"] }
default = reqwest, reqwest-default-tls

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

pubsub ipc? ws?

Enables alloy-pubsub, pubsub of alloy-rpc-client

Affects admin::AdminApi.subscribe_peer_events, trait::Provider.subscribe_blocks, trait::Provider.subscribe_pending_transactions, trait::Provider.subscribe_full_pending_transactions, trait::Provider.subscribe_logs, trait::Provider.subscribe, trait::Provider.unsubscribe

reqwest default anvil-node?

Enables alloy-transport-http, reqwest, and url, reqwest of alloy-rpc-client

hyper

Enables alloy-transport-http and url, hyper of alloy-rpc-client

Affects alloy-provider::HyperProvider

ws = alloy-transport-ws, pubsub

Enables ws of alloy-rpc-client

ipc = alloy-transport-ipc, pubsub

Enables ipc of alloy-rpc-client

reqwest-default-tls default

Enables reqwest-default-tls of optional alloy-transport-http

reqwest-rustls-tls

Enables reqwest-rustls-tls of optional alloy-transport-http

reqwest-native-tls

Enables reqwest-native-tls of optional alloy-transport-http

admin-api

Enables alloy-rpc-types-admin

anvil-api anvil-node?

Enables alloy-rpc-types-anvil

anvil-node = anvil-api, reqwest

Enables alloy-node-bindings, alloy-signer, and alloy-signer-local

debug-api

Enables alloy-rpc-types-trace

erc4337-api
engine-api

Enables alloy-rpc-types-engine

net-api
trace-api

Enables alloy-rpc-types-trace

rpc-api

Enables alloy-rpc-types

txpool-api

Enables alloy-rpc-types-txpool

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.

alloy-transport-ipc ipc?
alloy-transport-ws ws?