onnxruntime_sys_ng/lib.rs
1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4// Disable clippy and `u128` not being FFI-safe (see #1)
5#![allow(clippy::all)]
6#![allow(improper_ctypes)]
7
8#[allow(clippy::all)]
9
10include!(concat!(
11 env!("CARGO_MANIFEST_DIR"),
12 "/src/generated/bindings.rs"
13));
14
15#[cfg(target_os = "windows")]
16pub type OnnxEnumInt = i32;
17#[cfg(not(target_os = "windows"))]
18pub type OnnxEnumInt = u32;