-
Notifications
You must be signed in to change notification settings - Fork 23
/
Cargo.toml
52 lines (43 loc) · 1.48 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "webxr"
version = "0.0.1"
authors = ["The Servo Project Developers"]
edition = "2018"
homepage = "https://github.com/servo/webxr"
repository = "https://github.com/servo/webxr"
keywords = ["webxr", "openvr", "oculus", "magicleap", "headset", "vr", "ar"]
license = "MPL-2.0"
description = '''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.'''
build = "build.rs"
[lib]
path = "lib.rs"
[features]
egl = []
gles = []
glwindow = ["glutin"]
headless = []
ipc = ["webxr-api/ipc", "serde"]
googlevr = ["gvr-sys", "android_injected_glue", "gles"]
magicleap = ["egl"]
openxr-api = ["openxr", "winapi", "wio"]
[dependencies]
webxr-api = { path = "../webxr-api" }
euclid = "0.20"
gleam = "0.6"
glutin = { version = "0.21", optional = true }
log = "0.4.6"
gvr-sys = { version = "0.7", optional = true }
openxr = { version = "0.9.1", optional = true }
serde = { version = "1.0", optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["dxgi", "d3d11", "winerror"], optional = true }
wio = { version = "0.2", optional = true }
[target.'cfg(target_os = "android")'.dependencies]
android_injected_glue = { version = "0.2.2", optional = true }
[build-dependencies]
gl_generator = "0.13"
bindgen = "0.51.0"