#vr #ar #oculus #open-vr #headset #webxr #magicleap

servo/webxr-api

A safe Rust API that provides a way to interact with Virtual Reality and Augmented Reality devices and integration with vendor-specific APIs like OpenVR, Oculus, GoogleVR and Magic Leap. The API is inspired by the WebXR Device API (https://www.w3.org/TR/webxr/) but adapted to Rust design patterns.

1 unstable release

0.0.1 May 30, 2019

#5 in #open-vr

81 stars & 20 watchers

MPL-2.0 license

72KB
2K SLoC

rust-webxr

Build Status

A safe Rust API that provides a way to interact with virtual reality and augmented reality devices and integration with vendor-specific APIs like OpenVR, Oculus, Google VR, and Magic Leap. The API is inspired by the WebXR Device API (https://www.w3.org/TR/webxr/) but adapted to Rust design patterns.

It's used in the WebXR implementation for the Servo browser, but can be used outside of Servo.

Some notes on our plans for this API: https://paper.dropbox.com/doc/Rust-webxr-plans--Ad8iXHKI15DKsFhfT3ufGiQiAg-xmqpUtCzy8yNMGWwUUxsz


lib.rs:

This crate defines the Rust API for WebXR. It is implemented by the webxr crate.

Dependencies

~0.6–33MB
~464K SLoC