Cargo Features

onnxruntime-sys has no features set by default.

[dependencies]
onnxruntime-sys = { version = "0.0.14", features = ["disable-sys-build-script", "generate-bindings"] }
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

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.59