OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Onnxruntime Rs

Onnxruntime Rs is a Rust library for integrating Microsoft’s ONNX Runtime into Rust applications. It includes a high-level API crate and a low-level crate that binds to the runtime’s C API, for running ONNX model inference.

Independent OpenViST project profile, based on linked sources.

Onnxruntime Rs — Rust applications using ONNX models with Microsoft’s ONNX Runtime
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Rust project needs ONNX Runtime inference and the documented version and experimental status fit the project’s requirements.

Who it is for

  • Rust developers integrating ONNX Runtime into an application.
  • Developers who need either a higher-level Rust interface or access through ONNX Runtime’s C API.

Documented uses

  • Run ONNX model inference from a Rust application.
  • Call ONNX Runtime’s C API from Rust using low-level bindings.
  • Set up the ONNX Runtime dependency using a downloaded prebuilt binary or a local installation.
Before you choose

Requirements & limits

  • The README identifies the target runtime as ONNX Runtime version 1.8.
  • The build script’s default download strategy fetches a prebuilt upstream runtime; the system strategy uses a local installation path.
  • The compile-from-source strategy is listed but not implemented.
  • CUDA-enabled runtime downloads are documented only for Linux and Windows.
  • The project warns that it is experimental and incomplete, and says many ONNX Runtime inference options are not exposed.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Configure ONNX Runtime dependency acquisition

Select how the build script obtains the ONNX Runtime library.

Before you start

  • The Rust project using this wrapper.
  • For the system strategy, an installed ONNX Runtime and its install path.

Steps

  1. Leave ORT_STRATEGY unset to use the default download strategy, or set it to download, system, or compile.

  2. For system, set ORT_LIB_LOCATION to the installed library path.

  3. For the download strategy with CUDA support, set ORT_USE_CUDA=1; CUDA downloads are supported on Linux or Windows.

Expected outcome

The build script is configured to download ONNX Runtime, use a local installation, or select the compile strategy.

Guide limitations

  • The README says compiling the runtime through the build script is not yet implemented.
  • CUDA download support is limited to Linux and Windows.
  • With ORT_STRATEGY=system, running a built binary may fail on macOS if the library is not in a system path; the README suggests setting LD_LIBRARY_PATH or configuring a full-path linker rpath.
COMPARE OPTIONS

Compare options for Model inference and serving

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
Onnxruntime RsRun ONNX model inference from a Rust application.Linux, Windows, macOS
ErgoCreate a project with separate data-preparation, model and training scripts.CLI
Llama2LangTranslate an instruction dataset into a target language and combine translation checkpoints.The repository is public and identified as open source under the Apache-2.0 license.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
23 October 2026
Original website title
nbigaouette/onnxruntime-rs · Official homepage title · retained in its source language