Cargo Features

[dependencies]
ort-sys = { version = "2.0.0-rc.11", default-features = false, features = ["std", "pkg-config", "training", "download-binaries", "copy-dylibs", "openvino", "rocm", "cann", "qnn", "webgpu", "nvrtx", "tls-rustls", "tls-rustls-no-provider", "tls-native", "tls-native-vendored"] }
default = std

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

std default

Affects ort-sys::internal

pkg-config build

Enables pkg-config

training
download-binaries build

Enables hmac-sha256, lzma-rust2 ^0.15, and ureq

lzma-rust2:

The optimization feature enables the use of unsafe code, which is unfortunate, but LZMA is so slow we kinda need all the speed we can get.

copy-dylibs

Affects dynamic_link::copy_dylibs

disable-linking cuda tensorrt openvino
onednn directml nnapi coreml xnnpack rocm
acl armnn tvm migraphx rknpu vitis cann
qnn
webgpu build

Enables glob

azure nvrtx
tls-rustls build = tls-rustls-no-provider

Enables rustls of optional ureq

ureq:

SUPPORTED FEATURES

tls-rustls-no-provider build tls-rustls?

Enables rustls-no-provider of optional ureq

ureq:

UNSTABLE FEATURES. Might be removed or changed in a minor version.

Rustls CryptoProviders are not picked up from feature flags alone. They must be configured on Agent. This feature flag makes it possible to compile ureq with rustls, but without ring. When webpki-roots is disabled you have to enable platform-verifier or provide root certs manually.

tls-native build tls-native-vendored?

Enables native-tls of optional ureq

tls-native-vendored build = tls-native

Enables vendored of optional ureq

ureq:

Supported as long as native-tls supports this.