Cargo Features

OnnxRuntime has no features set by default.

[dependencies]
onnxruntime = { version = "0.0.14", features = ["model-fetching", "disable-sys-build-script", "generate-bindings"] }
model-fetching = ureq

Fetch model from ONNX Model Zoo (https://github.com/onnx/models)

disable-sys-build-script

Disable build script; used for https://docs.rs

Enables disable-sys-build-script of onnxruntime-sys

generate-bindings

Enables generate-bindings of onnxruntime-sys

onnxruntime-sys:

Use bindgen to generate bindings in build.rs

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.

ureq model-fetching?

Enables ureq

Enabled with 'model-fetching' feature