9 unstable releases (4 breaking)

0.8.1 Aug 27, 2025
0.8.0 Aug 25, 2025
0.7.1 Aug 18, 2025
0.7.0 Feb 17, 2025
0.1.1 Apr 19, 2016

#143 in Hardware support

Download history 98/week @ 2025-08-12 160/week @ 2025-08-19 211/week @ 2025-08-26 76/week @ 2025-09-02 67/week @ 2025-09-09 65/week @ 2025-09-16 43/week @ 2025-09-23 72/week @ 2025-09-30 25/week @ 2025-10-07 43/week @ 2025-10-14 44/week @ 2025-10-21 18/week @ 2025-10-28 25/week @ 2025-11-04 15/week @ 2025-11-11 26/week @ 2025-11-18 23/week @ 2025-11-25

89 downloads per month
Used in voirs-spatial

MIT license

120KB
2K SLoC

rust-openvr

Build Status Join the chat at https://gitter.im/rust-openvr/rust-openvr

High-level bindings for OpenVR.

API documentation

C/C++ API documentation for reference purposes.

Requirements

openvr-sys requires CMake and C++ to compile and statically link the OpenVR library.

Imporant: OpenVR does not support MinGW on Windows, i.e., you have to use the MSVC Rust toolchain and C++ compiler.

Initializing

extern crate openvr;

fn main() {
    // Initialize OpenVR.
    let context = unsafe { openvr::init(openvr::ApplicationType::Scene) }.unwrap();

    // Access subsystem.
    let system = context.system().unwrap();

    // See examples/test.rs for a more detailed example.
}

Dependencies

~0.7–39MB
~519K SLoC