Cargo Features

[dependencies]
executorch = { version = "0.4.0", default-features = false, features = ["std", "alloc", "ndarray", "data-loader", "module", "f16", "complex"] }
default = ndarray, std

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

std default module? = alloc

Enables std of executorch-sys

alloc std

Affects evalue::IntoEValue.into_evalue

ndarray default

Enables ndarray

Affects tensor::ArrayStorage, tensor::Dimension, util::FixedSizeDim

data-loader

Enables data-loader of executorch-sys

module = std

Enables module of executorch-sys

Affects executorch::module

f16 = half
complex = num-complex

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.

half f16?
num-complex complex?