Cargo Features

[dependencies]
op-alloy = { version = "0.8.4", default-features = false, features = ["std", "full", "k256", "serde", "arbitrary", "consensus", "genesis", "registry", "protocol", "rpc-types", "rpc-types-engine", "provider", "network", "rpc-jsonrpsee"] }
default = k256, serde, std

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

std default

Enables std of optional op-alloy-consensus, optional op-alloy-genesis, optional op-alloy-protocol, optional op-alloy-registry, optional op-alloy-rpc-types, and optional op-alloy-rpc-types-engine

op-alloy-consensus:

Workspace

full = consensus, genesis, network, protocol, provider, registry, rpc-jsonrpsee, rpc-types, rpc-types-engine
k256 default

Enables k256 of optional op-alloy-consensus

serde default

Enables serde of optional op-alloy-consensus, optional op-alloy-genesis, optional op-alloy-protocol, and optional op-alloy-rpc-types-engine

arbitrary

Enables arbitrary of optional op-alloy-consensus, optional op-alloy-genesis, optional op-alloy-protocol, optional op-alloy-rpc-types, and optional op-alloy-rpc-types-engine

consensus full?

no_std support

Enables op-alloy-consensus

genesis full?

Enables op-alloy-genesis

registry full?

Enables op-alloy-registry

protocol full?

Enables op-alloy-protocol

rpc-types full?

Enables op-alloy-rpc-types

rpc-types-engine full?

Enables op-alloy-rpc-types-engine

provider full?

std features

Enables op-alloy-provider

network full?

Enables op-alloy-network

rpc-jsonrpsee full?

Enables op-alloy-rpc-jsonrpsee