Cargo Features

[dependencies]
alloy = { version = "0.8.3", default-features = false, features = ["std", "full", "reqwest", "reqwest-rustls-tls", "reqwest-native-tls", "hyper", "wasm-bindgen", "consensus", "contract", "eips", "genesis", "network", "node-bindings", "providers", "provider-http", "provider-ws", "provider-ipc", "provider-admin-api", "provider-anvil-api", "provider-debug-api", "provider-engine-api", "provider-net-api", "provider-trace-api", "provider-txpool-api", "provider-anvil-node", "pubsub", "rpc", "json-rpc", "rpc-client", "rpc-client-ws", "rpc-client-ipc", "rpc-types", "rpc-types-admin", "rpc-types-anvil", "rpc-types-beacon", "rpc-types-debug", "rpc-types-engine", "rpc-types-eth", "rpc-types-mev", "rpc-types-json", "rpc-types-trace", "rpc-types-txpool", "signers", "signer-aws", "signer-gcp", "signer-ledger", "signer-ledger-browser", "signer-ledger-node", "signer-local", "signer-trezor", "signer-keystore", "signer-mnemonic", "signer-mnemonic-all-languages", "signer-yubihsm", "transports", "transport-http", "transport-ipc", "transport-ipc-mock", "transport-ws", "dyn-abi", "json-abi", "json", "sol-types", "asm-keccak", "native-keccak", "sha3-keccak", "tiny-keccak", "map", "map-hashbrown", "map-indexmap", "map-fxhash", "getrandom", "rand", "rlp", "serde", "ssz", "k256", "kzg", "eip712", "postgres", "arbitrary"] }

----------------------------------------- Configuration ----------------------------------------

default = reqwest, std

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

Enables alloy-core

core

std default

Enables std of optional alloy-serde

serde

and std of alloy-core, optional alloy-consensus, optional alloy-eips, and optional alloy-genesis

alloy-consensus:

alloy

full = consensus, contract, eips, k256, kzg, network, provider-http, provider-ipc, provider-ws, rpc-types, signer-local
reqwest default

configuration

Enables reqwest and reqwest-default-tls of optional alloy-transport-http and reqwest of optional alloy-provider and optional alloy-rpc-client

alloy-provider:

providers

reqwest-rustls-tls

Enables reqwest and reqwest-rustls-tls of optional alloy-transport-http, reqwest of optional alloy-provider and optional alloy-rpc-client

reqwest-native-tls

Enables reqwest and reqwest-native-tls of optional alloy-transport-http, reqwest of optional alloy-provider and optional alloy-rpc-client

hyper

Enables hyper of optional alloy-provider, optional alloy-rpc-client, and optional alloy-transport-http

wasm-bindgen

Enables wasm-bindgen of optional alloy-transport

transport

consensus full? providers?

---------------------------------------- Main re-exports ---------------------------------------

general

Enables alloy-consensus

contract full? = dyn-abi, json, json-abi, providers, sol-types

Enables alloy-contract

eips full? providers?

Enables alloy-eips

genesis

Enables alloy-genesis

network full? providers?

Enables alloy-network

node-bindings provider-anvil-node?

Enables alloy-node-bindings, anvil-node of optional alloy-provider

providers contract? provider-admin-api? provider-anvil-api? provider-anvil-node? provider-debug-api? provider-engine-api? provider-http? provider-ipc? provider-net-api? provider-trace-api? provider-txpool-api? provider-ws? = consensus, eips, network, rpc-client, transports

Enables alloy-provider

Affects alloy::providers

provider-http full? = providers, transport-http
provider-ws full? = providers, transport-ws

Enables ws of optional alloy-provider

provider-ipc full? = providers, transport-ipc

Enables ipc of optional alloy-provider

provider-admin-api = providers, rpc-types-admin

Enables admin-api of optional alloy-provider

provider-anvil-api provider-anvil-node? = providers, rpc-types-anvil

Enables anvil-api of optional alloy-provider

provider-debug-api = providers, rpc-types-trace

Enables debug-api of optional alloy-provider

provider-engine-api = providers, rpc-types-engine

Enables engine-api of optional alloy-provider

provider-net-api = providers

Enables net-api of optional alloy-provider

provider-trace-api = providers, rpc-types-trace

Enables trace-api of optional alloy-provider

provider-txpool-api = providers, rpc-types-txpool

Enables txpool-api of optional alloy-provider

provider-anvil-node = node-bindings, provider-anvil-api, providers

Enables anvil-node of optional alloy-provider

pubsub transport-ipc? transport-ws?

Enables alloy-pubsub, pubsub of optional alloy-rpc-client, pubsub of optional alloy-contract and optional alloy-provider

Affects alloy::pubsub

rpc json-rpc? rpc-client? rpc-types?

Affects alloy::rpc

json-rpc = rpc

Enables alloy-json-rpc

rpc

rpc-client providers? rpc-client-ipc? rpc-client-ws? = rpc, transport-http, transports

Enables alloy-rpc-client

rpc-client-ws = rpc-client, transport-ws

Enables ws of optional alloy-rpc-client

rpc-client-ipc = rpc-client, transport-ipc

Enables ipc of optional alloy-rpc-client

rpc-types full? rpc-types-admin? rpc-types-anvil? rpc-types-beacon? rpc-types-debug? rpc-types-engine? rpc-types-eth? rpc-types-json? rpc-types-mev? rpc-types-trace? rpc-types-txpool? = rpc

Enables eth of alloy-rpc-types

rpc-types-admin provider-admin-api? = rpc-types

Enables admin-api of optional alloy-provider, admin of optional alloy-rpc-types

rpc-types-anvil provider-anvil-api? = rpc-types

Enables anvil-api of optional alloy-provider, anvil of optional alloy-rpc-types

rpc-types-beacon = rpc-types

Enables beacon of optional alloy-rpc-types

rpc-types-debug = rpc-types

Enables debug-api of optional alloy-provider

rpc-types-engine provider-engine-api? = rpc-types

Enables engine-api of optional alloy-provider, engine of optional alloy-rpc-types

rpc-types-eth = rpc-types

Enables eth of optional alloy-rpc-types

rpc-types-mev = rpc-types

Enables mev of optional alloy-rpc-types

rpc-types-json = rpc-types

Enables jsonrpsee-types of optional alloy-rpc-types

rpc-types-trace provider-debug-api? provider-trace-api? = rpc-types

Enables trace-api of optional alloy-provider, trace of optional alloy-rpc-types

rpc-types-txpool provider-txpool-api? = rpc-types

Enables txpool-api of optional alloy-provider, txpool of optional alloy-rpc-types

signers signer-aws? signer-gcp? signer-ledger? signer-local? signer-trezor?

Enables alloy-signer

signer

Affects alloy::signers

signer-aws = signers

Enables alloy-signer-aws

signer-gcp = signers

Enables alloy-signer-gcp

signer-ledger signer-ledger-browser? signer-ledger-node? = signers

Enables alloy-signer-ledger

signer-ledger-browser = signer-ledger

Enables browser of optional alloy-signer-ledger

alloy-signer-ledger:

WASM support

signer-ledger-node = signer-ledger

Enables node of optional alloy-signer-ledger

signer-local full? signer-keystore? signer-mnemonic? signer-yubihsm? = signers

Enables alloy-signer-local

signer-trezor = signers

Enables alloy-signer-trezor

signer-keystore = signer-local

Enables keystore of optional alloy-signer-local

signer-mnemonic signer-mnemonic-all-languages? = signer-local

Enables mnemonic of optional alloy-signer-local

signer-mnemonic-all-languages = signer-mnemonic

Enables mnemonic-all-languages of optional alloy-signer-local

signer-yubihsm = signer-local

Enables yubihsm of optional alloy-signer-local

transports providers? rpc-client? transport-http? transport-ipc? transport-ws?

Enables alloy-transport

Affects alloy::transports

transport-http provider-http? rpc-client? = transports

Enables alloy-transport-http

transport-ipc provider-ipc? rpc-client-ipc? = pubsub, transports

Enables alloy-transport-ipc

transport-ipc-mock

Enables mock of optional alloy-transport-ipc

transport-ws provider-ws? rpc-client-ws? = pubsub, transports

Enables alloy-transport-ws

dyn-abi contract?

---------------------------------------- Core re-exports ---------------------------------------

Enables dyn-abi of alloy-core

json-abi contract?

Enables json-abi of alloy-core

json contract?

Enables json of alloy-core

sol-types contract?

Enables sol-types of alloy-core

asm-keccak

Enables asm-keccak of alloy-core

native-keccak

Enables native-keccak of alloy-core

sha3-keccak

Enables sha3-keccak of alloy-core

tiny-keccak

Enables tiny-keccak of alloy-core

map

Enables map of alloy-core

map-hashbrown

Enables map-hashbrown of alloy-core

map-indexmap

Enables map-indexmap of alloy-core

map-fxhash

Enables map-fxhash of alloy-core

getrandom

Enables getrandom of alloy-core

rand

Enables rand of alloy-core

rlp

Enables rlp of alloy-core

serde

Enables alloy-serde, serde of alloy-core, optional alloy-consensus, and optional alloy-eips

ssz

Enables ssz of optional alloy-rpc-types

k256 full?

Enables k256 of optional alloy-consensus, alloy-core, optional alloy-eips, optional alloy-network, and optional alloy-rpc-types

kzg full?

Enables kzg of optional alloy-consensus and optional alloy-rpc-types

eip712

Enables eip712 of alloy-core, optional alloy-signer, optional alloy-signer-aws, optional alloy-signer-gcp, and optional alloy-signer-ledger

postgres

Enables postgres of alloy-core

arbitrary

Enables arbitrary of optional alloy-consensus, alloy-core, optional alloy-eips, and optional alloy-rpc-types