Cargo Features

[dependencies]
bitcoin_hashes = { version = "0.14.0", default-features = false, features = ["std", "alloc", "io", "small-hash", "schemars", "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 bitcoin-io and hex-conservative

alloc std

Enables alloc of hex-conservative

io = bitcoin-io

If you want I/O you must enable either "std" or "io".

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.

bitcoin-io io? std
schemars implicit feature

Enables schemars

schemars:

Generate JSON Schemas from Rust code

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects serde_macros::serde_details