Cargo Features
[dependencies]
brotli = { version = "3.4.0", default-features = false, features = ["std", "validation", "seccomp", "external-literal-probability", "disable-timer", "vector_scratch_space", "pass-through-ffi-panics", "ffi-api", "benchmark"] }
- default = ffi-api, std
-
These default features are set whenever
brotli
is added without
somewhere in the dependency tree.default-features = false - 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
… - validation = sha2
- seccomp
-
Enables seccomp of brotli-decompressor
Affects
brotli::decompress
… - external-literal-probability
-
Affects
interface::FeatureFlagSliceType
… - disable-timer
-
Enables disable-timer of brotli-decompressor
- vector_scratch_space
-
Affects
histogram::HistogramLiteralScratch
,histogram::HistogramCommandScratch
,histogram::HistogramDistanceScratch
… - pass-through-ffi-panics
-
Affects
compressor::catch_panic
… - ffi-api default
-
Affects
brotli::ffi
… - 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.