Cargo Features

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

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

std default = alloc

Enables std of hex-conservative ^0.2.0 and satsnet-io

alloc std

Enables alloc of hex-conservative ^0.2.0

io = satsnet-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.

satsnet-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