@@ -13,7 +13,7 @@ use std::{
1313/// WARNING: If version is changed, bindings for all platforms will have to be re-generated.
1414/// To do so, run this:
1515/// cargo build --package onnxruntime-sys --features generate-bindings
16- const ORT_VERSION : & str = "1.8 .1" ;
16+ const ORT_VERSION : & str = "1.11 .1" ;
1717
1818/// Base Url from which to download pre-built releases/
1919const ORT_RELEASE_BASE_URL : & str = "https://github.com/microsoft/onnxruntime/releases/download" ;
@@ -310,33 +310,31 @@ struct Triplet {
310310impl OnnxPrebuiltArchive for Triplet {
311311 fn as_onnx_str ( & self ) -> Cow < str > {
312312 match ( & self . os , & self . arch , & self . accelerator ) {
313- // onnxruntime-win-x86-1.8.1.zip
314- // onnxruntime-win-x64-1.8.1.zip
315- // onnxruntime-win-arm-1.8.1.zip
316- // onnxruntime-win-arm64-1.8.1.zip
317- // onnxruntime-linux-x64-1.8.1.tgz
318- // onnxruntime-osx-x64-1.8.1.tgz
313+ // onnxruntime-win-x86-1.11.1.zip
314+ // onnxruntime-win-x64-1.11.1.zip
315+ // onnxruntime-win-arm-1.11.1.zip
316+ // onnxruntime-win-arm64-1.11.1.zip
317+ // onnxruntime-linux-x64-1.11.1.tgz
318+ // onnxruntime-osx-x86_64-1.11.1.tgz
319+ // onnxruntime-osx-arm64-1.11.1.tgz
319320 ( Os :: Windows , Architecture :: X86 , Accelerator :: None )
320321 | ( Os :: Windows , Architecture :: X86_64 , Accelerator :: None )
321322 | ( Os :: Windows , Architecture :: Arm , Accelerator :: None )
322323 | ( Os :: Windows , Architecture :: Arm64 , Accelerator :: None )
323- | ( Os :: Linux , Architecture :: X86_64 , Accelerator :: None )
324- | ( Os :: MacOs , Architecture :: X86_64 , Accelerator :: None ) => Cow :: from ( format ! (
324+ | ( Os :: Linux , Architecture :: X86_64 , Accelerator :: None ) => Cow :: from ( format ! (
325325 "{}-{}" ,
326326 self . os. as_onnx_str( ) ,
327327 self . arch. as_onnx_str( )
328328 ) ) ,
329- // onnxruntime-win-gpu-x64-1.8.1.zip
330- // Note how this one is inverted from the linux one next
331- ( Os :: Windows , Architecture :: X86_64 , Accelerator :: Gpu ) => Cow :: from ( format ! (
332- "{}-{}-{}" ,
329+ ( Os :: MacOs , Architecture :: X86_64 , Accelerator :: None ) => Cow :: from ( format ! (
330+ "{}-x86_{}" ,
333331 self . os. as_onnx_str( ) ,
334- self . accelerator. as_onnx_str( ) ,
335- self . arch. as_onnx_str( ) ,
332+ self . arch. as_onnx_str( ) . trim_start_matches( 'x' )
336333 ) ) ,
337- // onnxruntime-linux-x64-gpu-1.8.1.tgz
338- // Note how this one is inverted from the windows one above
339- ( Os :: Linux , Architecture :: X86_64 , Accelerator :: Gpu ) => Cow :: from ( format ! (
334+ // onnxruntime-win-x64-gpu-1.11.1.zip
335+ // onnxruntime-linux-x64-gpu-1.11.1.tgz
336+ ( Os :: Linux , Architecture :: X86_64 , Accelerator :: Gpu )
337+ | ( Os :: Windows , Architecture :: X86_64 , Accelerator :: Gpu ) => Cow :: from ( format ! (
340338 "{}-{}-{}" ,
341339 self . os. as_onnx_str( ) ,
342340 self . arch. as_onnx_str( ) ,
0 commit comments