Cargo Features

[dependencies]
bitcoin = { version = "0.33.0-beta.0", default-features = false, features = ["std", "rand", "serde", "secp-global-context", "secp-lowmemory", "secp-recovery", "arbitrary", "bitcoinconsensus"] }

If you change features or optional dependencies in any way please update the "# Cargo features" section in lib.rs as well.

default = secp-recovery, std

These default features are set whenever bitcoin is added without default-features = false somewhere in the dependency tree.

std default

Enables std of base58ck, optional base64, bech32, optional bitcoinconsensus, bitcoin-consensus-encoding, bitcoin_hashes, hex-conservative ^0.3.0, bitcoin-internals, bitcoin-io, bitcoin-primitives, secp256k1, and bitcoin-units

bitcoinconsensus:

bitcoinconsensus version includes metadata which indicates the version of Core. Use cargo tree to see it.

rand

Enables rand of secp256k1

serde = base64

Enables serde, serde of bitcoin-units, serde of bitcoin_hashes, bitcoin-internals, bitcoin-primitives, and secp256k1

Affects consensus::serde, network::as_core_arg

secp-global-context

Enables global-context of secp256k1

secp-lowmemory

Enables lowmemory of secp256k1

secp-recovery default

Enables recovery of secp256k1

Affects sign_message::sign

arbitrary

Enables arbitrary, arbitrary of bitcoin-primitives and bitcoin-units

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.

base64 serde?
bitcoinconsensus implicit feature

Affects bitcoin::consensus_validation