#open-xr #vr #headset #ar #design-pattern #webxr

servo/webxr-api

A safe Rust API that provides a way to interact with virtual reality and augmented reality devices and integration with OpenXR. 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

#9 in #headset

84 stars & 21 watchers

MPL-2.0 license

73KB
2K SLoC

Moved in servo/components/webxr with https://github.com/servo/servo/pull/35228

A safe Rust API that provides a way to interact with virtual reality and augmented reality devices and integration with OpenXR. 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–28MB
~408K SLoC