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
somewhere in the dependency tree.default-features = false - rayon
-
blake3:
The
rayon
feature (disabled by default, but enabled for docs.rs) adds theupdate_rayon
and (in combination withmmap
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