Cargo Features

[dependencies]
blueprint-crypto-hashing = { version = "0.1.0-alpha.1", default-features = false, features = ["std", "sha2-hasher", "sha3-hasher", "blake3-hasher"] }
default = blake3-hasher, sha2-hasher, sha3-hasher, std

These default features are set whenever blueprint-crypto-hashing is added without default-features = false somewhere in the dependency tree.

std default

Enables std of optional blake3, blueprint-std, optional sha2, and optional sha3

blake3:

This crate uses libstd for std::io trait implementations, and also for runtime CPU feature detection. This feature is enabled by default. If you use --no-default-features, the only way to use the SIMD implementations in this
crate is to enable the corresponding instruction sets statically for the entire build, with e.g. RUSTFLAGS="-C target-cpu=native".

sha2-hasher default = sha2
sha3-hasher default = sha3
blake3-hasher default = blake3

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.

sha2 sha2-hasher

Affects blueprint-crypto-hashing::sha2_256, blueprint-crypto-hashing::sha2_512

sha3 sha3-hasher

Affects blueprint-crypto-hashing::keccak_256

blake3 blake3-hasher

Affects blueprint-crypto-hashing::blake3_256