Cargo Features

[dependencies]
buffered-reader = { version = "1.3.2", default-features = false, features = ["compression", "compression-deflate", "compression-bzip2"] }
default = compression

The compression feature is set by default whenever buffered-reader is added without default-features = false somewhere in the dependency tree.

compression default = compression-bzip2, compression-deflate

The compression algorithms.

compression-deflate compression = flate2
compression-bzip2 compression = bzip2

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.

bzip2 compression-bzip2?
flate2 compression-deflate?