Cargo Features

[dependencies]
brotli-decompressor = { version = "4.0.0", default-features = false, features = ["std", "seccomp", "unsafe", "disable-timer", "ffi-api", "benchmark"] }
default = std

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

std default = alloc-stdlib

Affects alloc_util::MemoryBlock, alloc_util::free_stdlib, alloc_util::alloc_stdlib, io_wrappers::IntoIoReader, io_wrappers::IntoIoWriter, io_wrappers::IoWriterWrapper, io_wrappers::IoReaderWrapper, brotli-decompressor::BrotliDecompressCustomDict, brotli-decompressor::BrotliDecompressCustomAlloc, brotli-decompressor::copy_from_to, brotli-decompressor::brotli_decode, reader::DecompressorCustomAlloc, writer::DecompressorWriterCustomAlloc, brotli-decompressor::BrotliDecompress, reader::Decompressor, writer::DecompressorWriter

seccomp

Affects brotli-decompressor::decompress

unsafe

Enables unsafe of alloc-no-stdlib and alloc-stdlib

Affects brotli-decompressor::BrotliDecompress, reader::Decompressor, writer::DecompressorWriter

pass-through-ffi-panics disable-timer
ffi-api

Affects decode::BrotliDecoderIsUsed, brotli-decompressor::ffi

benchmark

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 unsafe?