Cargo Features

[dependencies]
bitcoin-primitives = { version = "0.101.0", default-features = false, features = ["std", "alloc", "serde", "arbitrary", "ordered"] }
default = std

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

std default = alloc

Enables std of bitcoin_hashes, hex-conservative, bitcoin-internals, bitcoin-io, and bitcoin-units

alloc serde? std

Enables alloc of bitcoin_hashes, hex-conservative, bitcoin-internals, bitcoin-io, and bitcoin-units

Affects block::Validation, block::Block, block::Checked, block::Unchecked, bitcoin-primitives::locktime, bitcoin-primitives::script, bitcoin-primitives::witness, transaction::Transaction, transaction::TxIn, transaction::TxOut, transaction::ParseOutPointError

serde = alloc

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

arbitrary

Enables arbitrary, arbitrary of bitcoin-units

Features from optional dependencies

ordered implicit feature

Enables ordered

ordered:

A wrapper for adding arbitrary partial/total order to a type