Cargo Features

[dependencies]
bitcoin-units = { version = "0.2.0", default-features = false, features = ["std", "alloc", "serde", "arbitrary"] }
default = std

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

std default = alloc

Enables std of bitcoin-internals

alloc std

Enables alloc of bitcoin-internals

Affects amount::SerdeAmount.ser_btc, amount::SerdeAmount.des_btc, amount::SerdeAmountForOpt.ser_btc_opt, amount::serde.as_btc, bitcoin-units::block, bitcoin-units::fee_rate, bitcoin-units::locktime, bitcoin-units::parse, bitcoin-units::weight

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects amount::serde

arbitrary implicit feature

Enables arbitrary

arbitrary:

The trait for generating structured data from unstructured data