Cargo Features

constriction = { version = "0.3.2", default-features = false, features = ["std", "pybindings"] }
default = std

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

std default
pybindings = ndarray, numpy, pyo3

Use feature pybindings to compile the python extension module that provides access to this library from python. This feature is turned off by default because it causes problems with cargo test. To turn it on, run: cargo build --release --features pybindings

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

ndarray pybindings?

With default (std)

numpy pybindings?

Enables numpy ^0.19.0

pyo3 pybindings?

Enables extension-module and default (macros) of pyo3 ^0.19.1