Cargo Features

[dependencies]
chf = { version = "0.3.1", default-features = false, features = ["std", "alloc", "io", "small-hash", "schemars", "serde"] }
default = std

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

std default = alloc

Enables std of bitcoin-io ^0.1.1 and hex-conservative ^0.2.0

alloc std

Enables alloc of hex-conservative ^0.2.0

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

Enables bitcoin-io ^0.1.1

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