Cargo Features

[dependencies]
bdk_chain = { version = "0.13.0", default-features = false, features = ["std", "serde", "hashbrown"] }
default = std

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

std default

Enables std of bitcoin ^0.31.0 and miniscript

bitcoin:

For no-std, remember to enable the bitcoin/no-std feature

Affects bdk_chain::collections

serde = serde_crate

Enables serde of bitcoin ^0.31.0

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_crate serde?

Enables serde

hashbrown implicit feature

Enables hashbrown ^0.9.1

Use hashbrown as a feature flag to have HashSet and HashMap from it.

Affects bdk_chain::collections

miniscript std