Cargo Features

[dependencies]
needletail = { version = "0.6.1", default-features = false, features = ["compression", "python", "python_test", "xz2"] }
default = compression

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

compression default = bzip2, flate2, xz2, zstd
python

Enables extension-module of pyo3 ^0.21.2

pyo3:

Use this feature when building an extension module.
It tells the linker to keep the python symbols unresolved,
so that the module can also be used with statically linked python interpreters.

Affects needletail::python

python_test = pyo3

Affects needletail::python

xz2 compression = liblzma

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

Enables bzip2 ^0.4

flate2 compression
pyo3 python? python_test?

Enables pyo3 ^0.21.2

liblzma xz2?
zstd compression