Cargo Features

[dependencies]
bitcoin_hashes = { version = "0.16.0", default-features = false, features = ["std", "alloc", "serde", "small-hash", "bitcoin-io"] }
default = std

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

std default = alloc

Enables std of optional bitcoin-io and hex-conservative

alloc std

Enables alloc of optional bitcoin-io and hex-conservative

serde = hex

Enables serde

Affects bitcoin_hashes::serde_macros.serde_details, macros::serde_details

small-hash

Smaller (but slower) implementation of sha256, sha512 and ripemd160

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.

hex alloc? serde? std

Enables hex-conservative

bitcoin-io implicit feature

Enables bitcoin-io

bitcoin-io:

Simple I/O traits for no-std (and std) environments

Affects bitcoin_hashes::GeneralHash.hash_reader