Cargo Features

[dependencies]
alloy-consensus = { version = "0.4.2", default-features = false, features = ["std", "k256", "kzg", "serde", "serde-bincode-compat", "arbitrary"] }
default = std

The std feature is set by default whenever alloy-consensus is added without default-features = false somewhere in the dependency tree.

std default arbitrary? kzg?

Enables std of alloy-eips and optional c-kzg ^1.0

c-kzg:

kzg

k256

Enables k256 of alloy-eips and alloy-primitives

kzg = std

Enables c-kzg ^1.0, kzg of alloy-eips

serde

Enables alloy-serde and serde, serde of alloy-eips and alloy-primitives

Affects alloy-consensus::serde_bincode_compat, transaction::serde_bincode_compat

serde-bincode-compat = serde_with

Enables serde-bincode-compat of alloy-eips

Affects alloy-consensus::serde_bincode_compat, transaction::serde_bincode_compat

arbitrary = std

Enables arbitrary, arbitrary of alloy-eips

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.

serde_with serde-bincode-compat?