Cargo Features

Metatensor has no features set by default.

[dependencies]
metatensor = { version = "0.2.0", features = ["static", "rayon"] }
static

use the static build of metatensor-core instead of the shared one

Enables static of metatensor-sys

Features from optional dependencies

rayon implicit feature

Enables rayon

rayon:

Simple work-stealing parallelism for Rust

Affects labels::LabelsParIter, tensor::TensorMapParIter, tensor::TensorMapParIterMut