openvino-rs

Library Listed

High-level bindings for OpenVINO.

Checked · Sources

Downloads
218,765
Dependents
6
Stars
143
Forks
37
Contributors
16
Commits
235
Latest release
0.11.1 ·

About

From the project README ·

This repository contains Rust bindings for accessing OpenVINO™ functionality:

CrateDescription
openvinoHigh-level, ergonomic bindings for OpenVINO™ inference
openvino-sysLow-level, unsafe FFI bindings for the OpenVINO™ C API
openvino-genaiHigh-level bindings for OpenVINO™ GenAI (LLM, VLM, Whisper pipelines)
openvino-genai-sysLow-level, unsafe FFI bindings for the OpenVINO™ GenAI C API
openvino-finderShared library discovery logic
Prerequisites
  1. The openvino-sys crate creates bindings to the OpenVINO™ C API using bindgen; this requires a local installation of libclang. Also, be sure to retrieve all Git submodules.

  2. This library binds to OpenVINO™'s shared libraries; how those native libraries are configured and installed on your system determines how these Rust bindings work. The openvino-finder crate attempts to locate the necessary libraries and configuration; if you run into problems, you may need to understand additional details documented in the openvino-finder docs.

Read the full README
  1. During testing only, this library will download several models for its integration tests. This relies on curl being available on the system path.

  2. For macOS (homebrew) users. Install the openvino toolkit, which includes the native C library, and set DYLD_LIBRARY_PATH:

    brew install openvino
    export DYLD_LIBRARY_PATH="$(brew --prefix)/lib"
    

    Then you can build and run using runtime linking.

Build from an OpenVINO™ installation
cargo build
cargo test

The quickest method to build the openvino and openvino-sys crates is with a local installation of OpenVINO™ (see the installation instructions). The build script will attempt to locate an existing installation (see openvino-finder) and link against its shared libraries. Provide the OPENVINO_INSTALL_DIR environment variable to point at a specific installation. Ensure that the correct libraries are available on the system's load path; OpenVINO™'s setupvars.sh script will do this automatically (e.g., source /opt/intel/openvino/setupvars.sh).

Build for runtime linking
cargo build --features runtime-linking
cargo test --features runtime-linking

The openvino-rs crates also support linking from a shared library at runtime (i.e. dlopen-style). This allow building the crates with no OpenVINO™ installation or source code present and only later — at runtime — providing the OpenVINO™ shared libraries. All underlying system calls are wrapped so that a call to openvino_sys::library::load will link them to their shared library implementation (using the logic in openvino-finder to locate the shared libraries). For high-level users, call openvino::Core::new first to automatically load and link the libraries.

Build from OpenVINO™ sources

First, build OpenVINO by cloning the openvino repository and following the OpenVINO™ build documentation. Then, using the top-level directory as <openvino-repo> (not the CMake build directory), build this crate:

OPENVINO_BUILD_DIR=<openvino-repo> cargo build
OPENVINO_BUILD_DIR=<openvino-repo> cargo test

Some important notes about the path passed in OPENVINO_BUILD_DIR:

  • <openvino-repo> should be an absolute path (or at least a path relative to the crates/openvino-sys directory, which is the current directory when used at build time)
  • <openvino-repo> should either be outside of this crate's tree or in the target directory (see the limitations on cargo:rustc-link-search).

The various OpenVINO libraries and dependencies are found using the openvino-finder crate. Turn on logging to troubleshoot any issues finding the right libraries, e.g., RUST_LOG=debug OPENVINO_BUILD_DIR=... cargo build -vv.

Build without linking to OpenVINO™
OPENVINO_SKIP_LINKING=1 cargo build -vv

In some environments it may be necessary to build the openvino-sys crate without linking to the OpenVINO libraries (e.g. for docs.rs builds). In these cases, use the OPENVINO_SKIP_LINKING environment variable to skip linking entirely. The compiled crate will likely not work as expected (e.g., for inference), but it should build.

Use

After building:

  • peruse the documentation for the openvino crate; this is the library you likely want to interact with from Rust.
  • follow along one with of the classification examples; these examples classifies an image using pre-built models. The examples (and all tests) are runnable using cargo test (or OPENVINO_INSTALL_DIR=/opt/intel/openvino cargo test when building from an installation).
Development

Run cargo xtask --help to read up on the in-tree development tools.

License

openvino-rs is released under the same license as OpenVINO™: the Apache License Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
Required
  • Binds native code: openvino-genai-sys, openvino-sys, openvino_c_api, openvino_genai_c_api
Python bindings
No Python binding crate found
License
Apache-2.0

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

openvino-rs beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
openvino-rs This page Listed

High-level bindings for OpenVINO.

218,765 downloads over 30 days 6 143 0.11.1 GPU support unknown Binds native code: openvino-genai-sys, openvino-sys, openvino_c_api, openvino_genai_c_api Apache-2.0
llama-cpp-rs Featured

llama.cpp bindings for Rust

341,382 downloads over 30 days 98 665 0.1.161 CUDA, WebGPU, Metal, ROCm, Vulkan Binds native code: llama. Build uses a native toolchain: bindgen, cc, cmake Apache-2.0 OR MIT

Rust bindings for OpenNMT/CTranslate2

10,244 downloads over 30 days 6 63 0.10.4 CUDA Binds native code: cxx, link-cplusplus, intel-onemkl-prebuild (feature mkl), onednn-src (feature dnnl), openblas-src (feature openblas) and 1 more. Build uses a native toolchain: cmake, cxx-build MIT
tflite-rs Listed Dormant

Rust bindings for TensorFlow Lite

550 downloads over 30 days 1 129 0.9.8 GPU support unknown Build uses a native toolchain: bindgen Apache-2.0 OR MIT

High level API for stable-diffusion.cpp

241 downloads over 30 days 2 56 0.1.20 CUDA, Metal, Vulkan Binds native code: diffusion-rs-sys, stable-diffusion. Build uses a native toolchain: bindgen, cmake MIT
pmetal Listed

High-performance LLM fine-tuning framework for Apple Silicon

Python bindings

13 downloads over 30 days 0 332 0.7.0 Metal Binds native code: pmetal_bridge, pmetal_runtime, mach-sys, pmetal-mlx-sys. Build uses a native toolchain: cc, cmake Apache-2.0 OR MIT
blazr App Listed

Inference server for LLMs, speech and embeddings: OpenAI-compatible routes with streaming, plus speech synthesis (TTS) and transcription (ASR). Serves Llama, Mistral, Qwen, Mamba2, MLA+MoE and hybrid models from SafeTensors, AWQ, GPTQ and GGUF.

8 binary downloads per release Not applicable 7 0.7.1 CUDA, WebGPU Binds native code: ring (feature distributed) Apache-2.0
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 6 active dependents and 5 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 143 stars, 37 forks and 16 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.

What else the check found

  • The last activity is on 9 Oct 2026, 31 days ago. The rules expect an update within 600 days. Dormancy rule
  • The oldest outside issue waits 2119 days for a reply, past the limit of 270. No maintainer replied in 365 days. Rot signals rule

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.11.1 base 300, doubled for 218765 downloads per month: E = 600 days
  • dormancy: last activity 2026-10-09, 31 days ago, E = 600: active
  • rot: oldest unanswered issue 2119 days (limit 270), no maintainer reply in 365 days
  • featured: not featured: active_users 6 < 11 and new_adopters 5 < 9 and repository route stars 143 (needs 4539), forks 37 (needs 434), contributors 16 (needs 79)
  • listed: listed: no archive, new or featured rule applies
Crates5 crates

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption6 active dependents, 5 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents6crates.io database dumpYes
New dependents (365 days)5crates.io database dumpYes
Peak active dependents6crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 31 days ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-10-09GitHub repositoryYes
Latest release2026-10-09crates.io database dumpYes
First release2020-10-22crates.io database dumpYes
Latest version0.11.1crates.io database dumpYes
Days the oldest outside issue waits for a reply2119GitHub repositoryYes
Maintainer replies over 365 days0GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution25 releases, 218,765 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases25crates.io database dumpYes
Downloads over 30 days218765crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository143 stars, 37 forks, 16 contributors, 235 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars143GitHub repositoryYes — one part of the repository route
GitHub forks37GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account16GitHub contributorsYes — one part of the repository route
Commits on the default branch235GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseApache-2.0crates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesBinds native code: openvino-genai-sys, openvino-sys, openvino_c_api, openvino_genai_c_apicrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly6crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.