diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-01-31 17:41:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-31 16:41:57 +0000 |
commit | 5466c27f6f9a151ae7f5357cb663cc2580fbca15 (patch) | |
tree | a306c16a4fc0af3fa8ab3976de0b5c79f8503de1 /components/webxr/Cargo.toml | |
parent | a4c6c205d2d26dd16ac1cd03e73a0262eb4c12f4 (diff) | |
download | servo-5466c27f6f9a151ae7f5357cb663cc2580fbca15.tar.gz servo-5466c27f6f9a151ae7f5357cb663cc2580fbca15.zip |
Finish the integration of `webxr` into the Cargo workspace (#35229)
- Run `cargo fmt` on `webxr` and `webxr-api`
- Fix clippy warnings in the existing `webxr` code
- Integrate the new crates into the workspace
- Expose `webxr` via the libservo API rather than requiring embedders to
depend on it explicitly.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/webxr/Cargo.toml')
-rw-r--r-- | components/webxr/Cargo.toml | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/components/webxr/Cargo.toml b/components/webxr/Cargo.toml index 23c7c4b85c7..84faa7d6ac4 100644 --- a/components/webxr/Cargo.toml +++ b/components/webxr/Cargo.toml @@ -1,14 +1,12 @@ [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" +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"] -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 OpenXR. The API is inspired by the WebXR Device API (https://www.w3.org/TR/webxr/) @@ -27,23 +25,16 @@ ipc = ["webxr-api/ipc", "serde"] openxr-api = ["angle", "openxr", "winapi", "wio", "surfman/sm-angle-default"] [dependencies] -webxr-api = { path = "../shared/webxr" } -crossbeam-channel = "0.5" -euclid = "0.22" -log = "0.4.6" -openxr = { version = "0.19", optional = true } -serde = { version = "1.0", optional = true } -glow = "0.16" -raw-window-handle = "0.6" -surfman = { git = "https://github.com/servo/surfman", rev = "300789ddbda45c89e9165c31118bf1c4c07f89f6", features = [ - "chains", - "sm-raw-window-handle-06", -] } +webxr-api = { workspace = true } +crossbeam-channel = { workspace = true } +euclid = { workspace = true } +log = { workspace = true } +openxr = { workspace = true, optional = true } +serde = { workspace = true, optional = true } +glow = { workspace = true } +raw-window-handle = { workspace = true } +surfman = { workspace = true, features = ["chains", "sm-raw-window-handle-06"] } [target.'cfg(target_os = "windows")'.dependencies] -winapi = { version = "0.3", features = [ - "dxgi", - "d3d11", - "winerror", -], optional = true } -wio = { version = "0.2", optional = true } +winapi = { workspace = true, features = ["dxgi", "d3d11", "winerror"], optional = true } +wio = { workspace = true, optional = true } |