mirror of
https://github.com/servo/servo.git
synced 2025-09-15 09:28:20 +01:00
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>
This commit is contained in:
parent
a4c6c205d2
commit
5466c27f6f
41 changed files with 448 additions and 649 deletions
|
@ -53,7 +53,7 @@ tracing-hitrace = ["tracing", "dep:hitrace"]
|
|||
tracing-perfetto = ["tracing", "dep:tracing-perfetto"]
|
||||
webdriver = ["libservo/webdriver"]
|
||||
webgl_backtrace = ["libservo/webgl_backtrace"]
|
||||
webxr = ["dep:webxr", "libservo/webxr"]
|
||||
webxr = ["libservo/webxr"]
|
||||
webgpu = ["libservo/webgpu"]
|
||||
|
||||
[dependencies]
|
||||
|
@ -101,7 +101,6 @@ xcomponent-sys = { version = "0.3.1", features = ["api-12", "keyboard-types"] }
|
|||
nix = { workspace = true, features = ["fs"] }
|
||||
surfman = { workspace = true, features = ["sm-angle-default"] }
|
||||
serde_json = { workspace = true }
|
||||
webxr = { workspace = true, optional = true }
|
||||
|
||||
[target.'cfg(not(any(target_os = "android", target_env = "ohos")))'.dependencies]
|
||||
# For optional feature servo_allocator/use-system-allocator
|
||||
|
@ -123,7 +122,6 @@ serde_json = { workspace = true }
|
|||
shellwords = "1.0.0"
|
||||
surfman = { workspace = true, features = ["sm-x11", "sm-raw-window-handle-06"] }
|
||||
tinyfiledialogs = "3.0"
|
||||
webxr = { workspace = true, features = ["ipc", "glwindow", "headless"] }
|
||||
winit = "0.30.8"
|
||||
|
||||
[target.'cfg(any(all(target_os = "linux", not(target_env = "ohos")), target_os = "windows"))'.dependencies]
|
||||
|
@ -133,6 +131,5 @@ image = { workspace = true }
|
|||
sig = "1.0"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
webxr = { workspace = true, features = ["ipc", "glwindow", "headless", "openxr-api"] }
|
||||
windows-sys = { workspace = true, features = ["Win32_Graphics_Gdi"] }
|
||||
libservo = { path = "../../components/servo", features = ["no-wgl"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue