Cargo Features
onnxruntime-ng has no features set by default.
[dependencies]
onnxruntime-ng = { version = "1.16.1", features = ["model-fetching", "disable-sys-build-script", "generate-bindings", "cuda"] }
- 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-ng
- generate-bindings
-
Enables generate-bindings of onnxruntime-sys-ng
onnxruntime-sys-ng:
Use bindgen to generate bindings in build.rs
- cuda
-
Enables cuda of onnxruntime-sys-ng
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