Cargo Features

[dependencies]
alloy-consensus = { version = "0.13.0", 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, alloy-primitives, alloy-rlp, alloy-trie, optional alloy-serde, and optional c-kzg

c-kzg:

kzg

and std of derive_more, either, once_cell, thiserror, serde_json, optional k256, optional serde, and optional serde_with

derive_more:

misc

k256

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

kzg = std

Enables c-kzg, kzg of alloy-eips

serde

Enables alloy-serde, serde, optional c-kzg, serde of alloy-trie, serde of alloy-eips and alloy-primitives, serde of either, optional k256, and optional rand ^0.8

Affects legacy::signed_legacy_serde, 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 and rand ^0.8, arbitrary of alloy-eips, alloy-primitives, alloy-trie, and optional alloy-serde

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?