servo/components/webxr/Cargo.toml
Narfinger 8788248fec
Removing unused dependencies in crates. (#37096)
Removed unused dependencies in various crates using cargo-machete, grep
and cargo-udeps.

Testing: The CI tests if any dependencies were used that are removed.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
2025-05-23 12:58:00 +00:00

40 lines
1.3 KiB
TOML

[package]
name = "webxr"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true
keywords = ["ar", "headset", "openxr", "vr", "webxr"]
description = '''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.'''
[lib]
path = "lib.rs"
[features]
default = ["x11"]
x11 = ["surfman/sm-x11"]
angle = ["surfman/sm-angle"]
glwindow = []
headless = []
ipc = ["webxr-api/ipc", "serde"]
openxr-api = ["angle", "openxr", "winapi", "wio", "surfman/sm-angle-default"]
[dependencies]
crossbeam-channel = { workspace = true }
euclid = { workspace = true }
glow = { workspace = true }
log = { workspace = true }
openxr = { workspace = true, optional = true }
raw-window-handle = { workspace = true }
serde = { workspace = true, optional = true }
surfman = { workspace = true, features = ["chains", "sm-raw-window-handle-06"] }
webxr-api = { workspace = true }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { workspace = true, features = ["dxgi", "d3d11", "winerror"], optional = true }
wio = { workspace = true, optional = true }