Crate features / brotli
Feature flags · brotli 9.0.0 · from crates.io 2026-10-24
brotli features: what each one does, and the line to copy
Short answerbrotli 9.0.0 has 17 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.59.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
benchmark | brotli-decompressor/benchmark | |
billing | nothing else (a switch the code checks) | |
disable-timer | brotli-decompressor/disable-timer | |
disallow_large_window_size | nothing else (a switch the code checks) | |
external-literal-probability | nothing else (a switch the code checks) | |
ffi-api | brotli-decompressor/ffi-api | |
float64 | nothing else (a switch the code checks) | |
floating_point_context_mixing | nothing else (a switch the code checks) | |
no-stdlib-ffi-binding | nothing else (a switch the code checks) | |
pass-through-ffi-panics | nothing else (a switch the code checks) | |
portable-float | nothing else (a switch the code checks) | |
safe | nothing else (a switch the code checks) | |
seccomp | alloc-no-stdlib/unsafe, brotli-decompressor/seccomp | |
simd | nothing else (a switch the code checks) | |
std | yes | alloc-stdlib, brotli-decompressor/std |
validation | sha2 | |
vector_scratch_space | nothing else (a switch the code checks) |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version brotli declares (rust-version), and the release that changed it:
- 3.5.0 (2024-03-17): Rust 1.56.0
- 7.0.0 (2024-10-02): Rust 1.59.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p brotli --precise <version>, or use resolver 3, which picks compatible versions for you.
More on brotli
Real downloads, dependents and alternatives: brotli crate data (841.3K real downloads a day, 613 dependents).
docs.rs feature list · crates.io · license BSD-3-Clause AND MIT · edition 2015
Up next
Before you depend on itbrotli crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?