Cargo Features
[dependencies]
needletail = { version = "0.6.0", default-features = false, features = ["compression", "python", "python_test", "xz2"] }
- default = compression
-
The
compression
feature is set by default wheneverneedletail
is added without
somewhere in the dependency tree.default-features = false - compression default = bzip2, flate2, xz2
- 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
- flate2 compression
- pyo3 python? python_test?
-
Enables pyo3 ^0.21.2
- liblzma xz2?