Cargo Features

[dependencies]
bitcoin_hashes = { version = "0.15.0", default-features = false, features = ["std", "alloc", "small-hash", "bitcoin-io", "serde"] }
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

small-hash

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

Features from optional dependencies

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

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

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