Cargo Features

[dependencies]
needletail = { version = "0.5.1", default-features = false, features = ["compression", "python", "python_test"] }
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
python

Enables extension-module of pyo3 ^0.18

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

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.

flate2 compression
bzip2 compression
xz2 compression
pyo3 python? python_test?

Enables pyo3 ^0.18