Cargo Features

[dependencies]
bdk = { version = "1.0.0-alpha.11", default-features = false, features = ["std", "compiler", "all-keys", "keys-bip39", "dev-getrandom-wasm"] }
default = std

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

std default

Enables std of bdk_chain ^0.14.0, bitcoin ^0.31.0, and miniscript ^11.0.0

compiler

Enables compiler of miniscript ^11.0.0

all-keys = keys-bip39
keys-bip39 all-keys? = bip39

Affects keys::bip39

dev-getrandom-wasm

This feature is used to run cargo check in our CI targeting wasm. It's not recommended for libraries to explicitly include the "getrandom/js" feature, so we only do it when necessary for running our CI. See: https://docs.rs/getrandom/0.2.8/getrandom/#webassembly-support

Enables js of getrandom

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.

bip39 keys-bip39?

Enables bip39

Optional dependencies