Cargo Features

[dependencies]
qtum_hashes = { version = "0.12.0-qtum", default-features = false, features = ["std", "alloc", "schemars", "serde-std", "core2"] }
default = std

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

std default = alloc

Enables std of qtum-private

alloc std

Enables alloc of qtum-private

schemars = actual-schemars, dyn-clone

Affects util::json_hex_string

serde-std

Enables std of serde

Only enable this if you explicitly do not want to use "std", otherwise enable "serde-std".

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.

core2 implicit feature

Enables core2 ^0.3.0

core2:

The bare essentials of std::io for use in no_std. Alloc support is optional.

serde serde-std?

Affects serde_macros::serde_details

actual-schemars schemars?

Enables schemars <=0.8.3

Do NOT use this as a feature! Use the schemars feature instead. Can only be used with "std" enabled.

dyn-clone schemars?

Enables dyn-clone <=1.0.7

Do NOT enable this dependency, this is just to pin dyn-clone (transitive dep from schemars) because 1.0.8 does not build with Rust 1.41.1 (because of useage of Arc::as_ptr).