Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
feat: update all bindings to ONNX Runtime v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim-furiosa committed Jan 4, 2022
1 parent a7a1ab6 commit b1000dd
Show file tree
Hide file tree
Showing 7 changed files with 1,601 additions and 8,866 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::{
/// WARNING: If version is changed, bindings for all platforms will have to be re-generated.
/// To do so, run this:
/// cargo build --features generate-bindings
const ORT_VERSION: &str = "1.8.1";
const ORT_VERSION: &str = "1.9.0";

/// Base Url from which to download pre-built releases/
const ORT_RELEASE_BASE_URL: &str = "https://github.com/microsoft/onnxruntime/releases/download";
Expand Down
26 changes: 4 additions & 22 deletions src/generated/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
include!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/generated/linux/x86_64/bindings.rs"
));
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated/linux/x86_64/bindings.rs"));

#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
include!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/generated/macos/x86_64/bindings.rs"
));

#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
include!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/generated/macos/aarch64/bindings.rs"
));
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated/macos/x86_64/bindings.rs"));

#[cfg(all(target_os = "windows", target_arch = "x86"))]
include!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/generated/windows/x86/bindings.rs"
));
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated/windows/x86/bindings.rs"));

#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
include!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/generated/windows/x86_64/bindings.rs"
));
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated/windows/x86_64/bindings.rs"));
Loading

0 comments on commit b1000dd

Please sign in to comment.