Cargo Features
[dependencies]
alloy-consensus = { version = "0.7.0", default-features = false, features = ["std", "k256", "kzg", "serde", "serde-bincode-compat", "arbitrary"] }
- default = std
-
The
std
feature is set by default wheneveralloy-consensus
is added without
somewhere in the dependency tree.default-features = false - std default arbitrary? kzg?
-
Enables std of alloy-eips and optional c-kzg ^1.0
c-kzg:
kzg
- k256
-
Enables k256, 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
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, 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.