Cargo Features

[dependencies]
brotli = { version = "5.0.0", default-features = false, features = ["std", "disable-timer", "external-literal-probability", "ffi-api", "pass-through-ffi-panics", "seccomp", "validation", "vector_scratch_space", "simd", "benchmark"] }
default = std

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

std default = alloc-stdlib

Enables std of brotli-decompressor

Affects enc::compress_multi, enc::BrotliCompress, enc::BrotliCompressCustomAlloc, reader::CompressorReaderCustomAlloc, reader::CompressorReader, singlethreading::SingleThreadedOwnedRetriever, threading::LowLevelThreadError, util::FastLog2, util::FastLog2f64, util::FastPow2, writer::CompressorWriterCustomAlloc, writer::CompressorWriter, compressor::catch_panic, decompressor::CBrotliDecoderDecompress

disable-timer

Enables disable-timer of brotli-decompressor

external-literal-probability

Affects interface::FeatureFlagSliceType

ffi-api

Enables ffi-api of brotli-decompressor

Affects brotli::ffi

pass-through-ffi-panics

Affects compressor::catch_panic

seccomp

Enables seccomp of brotli-decompressor

Affects brotli::decompress

validation = sha2
vector_scratch_space

Affects histogram::HistogramLiteralScratch, histogram::HistogramCommandScratch, histogram::HistogramDistanceScratch

simd

Affects enc::s16, enc::v8, enc::s8

benchmark

Enables benchmark of brotli-decompressor

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.

alloc-stdlib std
sha2 validation?