Cargo Features
[dependencies]
constriction = { version = "0.4.2", default-features = false, features = ["std", "pybindings"] }
- default = std
-
The
stdfeature is set by default wheneverconstrictionis added withoutsomewhere in the dependency tree.default-features = false - std default
- pybindings = numpy, pyo3
-
Use feature
pybindingsto compile the python extension module that provides access to this library from python. This feature is turned off by default because it causes problems withcargo teston Mac OS. 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. These features may have been created by mistake, and this functionality may be removed in the future.
- numpy pybindings?
-
Enables numpy ^0.27
- pyo3 pybindings?
-
Enables pyo3 ^0.27.2