Cargo Features

[dependencies]
laddu = { version = "0.1.3", default-features = false, features = ["extension-module", "rayon", "f32", "python"] }
default = python, rayon

These default features are set whenever laddu is added without default-features = false somewhere in the dependency tree.

extension-module

Enables extension-module of pyo3

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.

rayon default

Enables rayon

Affects amplitudes::Amplitude.precompute_all, data::open, data::open_filtered, variables::Variable.value_on

f32

Affects laddu::Float, laddu::PI

python default

Enables numpy and pyo3

Affects laddu::python