mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
These two traits both exposed different parts of the compositing API, but now that the compositor doesn't depend directly on `script` any longer and the `script_traits` crate has been split into the `constellation_traits` crate, this can be finally be cleaned up without causing circular dependencies. In addition, some unit tests for the `IOPCompositor`'s scroll node tree are also moved into `compositing_traits` as well. Testing: This just combines two crates, so no new tests are necessary. Fixes: #35984. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
43 lines
1.3 KiB
TOML
43 lines
1.3 KiB
TOML
[package]
|
|
name = "webgpu"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "webgpu"
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
arrayvec = { workspace = true, features = ["serde"] }
|
|
base = { workspace = true }
|
|
compositing_traits = { workspace = true }
|
|
euclid = { workspace = true }
|
|
ipc-channel = { workspace = true }
|
|
log = { workspace = true }
|
|
malloc_size_of = { workspace = true }
|
|
serde = { workspace = true, features = ["serde_derive"] }
|
|
servo_config = { path = "../config" }
|
|
webgpu_traits = { workspace = true }
|
|
webrender = { workspace = true }
|
|
webrender_api = { workspace = true }
|
|
wgpu-core = { workspace = true, features = ["serde", "wgsl"] }
|
|
wgpu-types = { workspace = true }
|
|
|
|
# We want the wgpu-core Metal backend on macOS and iOS.
|
|
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["metal"]
|
|
|
|
# We want the wgpu-core Vulkan backend on Linux and Windows.
|
|
[target.'cfg(any(windows, all(unix, not(any(target_os = "macos", target_os = "ios")))))'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["gles", "vulkan"]
|
|
|
|
# We want the wgpu-core Direct3D backends on Windows.
|
|
[target.'cfg(windows)'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["dx12", "vulkan"]
|