Cargo Features

[dependencies]
ort = { version = "2.0.0-rc.10", default-features = false, features = ["std", "training", "ndarray", "half", "num-complex", "tracing", "fetch-models", "download-binaries", "load-dynamic", "copy-dylibs", "alternative-backend", "cuda", "tensorrt", "openvino", "onednn", "directml", "nnapi", "coreml", "xnnpack", "rocm", "acl", "armnn", "tvm", "migraphx", "rknpu", "vitis", "cann", "qnn", "webgpu", "azure", "nv"] }
default = copy-dylibs, download-binaries, ndarray, std, tracing

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

std default fetch-models? load-dynamic?

Enables std of ndarray ^0.16, ort-sys, and optional tracing

training

Enables training of ort-sys

Affects ort::training

ndarray default std

Enables ndarray ^0.16

half

Enables half

num-complex

Enables num-complex

tracing default

Enables tracing

fetch-models = std

Enables sha2 and ureq

download-binaries default

Enables download-binaries of ort-sys

load-dynamic = libloading, std

Enables load-dynamic of ort-sys

Affects environment::init_from, cuda::preload_dylibs, util::preload_dylib

copy-dylibs default

Enables copy-dylibs of ort-sys

alternative-backend

Enables disable-linking of ort-sys

cuda

Enables cuda of ort-sys

tensorrt

Enables tensorrt of ort-sys

openvino

Enables openvino of ort-sys

onednn

Enables onednn of ort-sys

directml

Enables directml of ort-sys

nnapi

Enables nnapi of ort-sys

coreml

Enables coreml of ort-sys

xnnpack

Enables xnnpack of ort-sys

rocm

Enables rocm of ort-sys

acl

Enables acl of ort-sys

armnn

Enables armnn of ort-sys

tvm

Enables tvm of ort-sys

migraphx

Enables migraphx of ort-sys

rknpu

Enables rknpu of ort-sys

vitis

Enables vitis of ort-sys

cann

Enables cann of ort-sys

qnn

Enables qnn of ort-sys

webgpu

Enables webgpu of ort-sys

azure

Enables azure of ort-sys

nv

Enables nv of ort-sys

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.

libloading load-dynamic?

Enables libloading ^0.8