Cargo Features

[dependencies]
yar-hash = { version = "0.1.0", default-features = false, features = ["rayon", "scroll", "serde"] }
default = scroll, serde

These default features are set whenever yar-hash is added without default-features = false somewhere in the dependency tree.

rayon

Enables rayon of blake3

blake3:

The rayon feature (disabled by default, but enabled for docs.rs) adds the update_rayon and (in combination with mmap below) update_mmap_rayon methods, for multithreaded hashing. However, even if this feature is enabled, all other APIs remain single-threaded.

Implementation detail: We take a dependency on rayon-core instead of rayon, because it builds faster and still includes all the APIs we need.

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.

blake3 rayon?
scroll default

Enables scroll ^0.11

serde default