Cargo Features

[dependencies]
grenad = { version = "0.5.0", default-features = false, features = ["snappy", "zlib", "lz4", "rayon", "tempfile", "zstd"] }
default = snappy, tempfile

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

snappy default = snap
zlib = flate2
lz4 = lz4_flex

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.

flate2 zlib?
lz4_flex lz4?
rayon implicit feature

Enables rayon

rayon:

Simple work-stealing parallelism for Rust

snap snappy
tempfile default

Affects sorter::DefaultChunkCreator, sorter::TempFileChunk

zstd implicit feature

Enables zstd

zstd:

Binding for the zstd compression library