Cargo Features
onnxruntime-sys-ng has no features set by default.
[dependencies]
onnxruntime-sys-ng = { version = "1.16.1", features = ["disable-sys-build-script", "generate-bindings", "cuda"] }
- disable-sys-build-script
-
Disable build script, used to prevent issues with docs.rs
- generate-bindings = bindgen
-
Use bindgen to generate bindings in build.rs
- cuda
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.
- bindgen build generate-bindings?
-
Enables bindgen ^0.66.1