From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- gfx/wgpu_bindings/Cargo.toml | 63 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 gfx/wgpu_bindings/Cargo.toml (limited to 'gfx/wgpu_bindings/Cargo.toml') diff --git a/gfx/wgpu_bindings/Cargo.toml b/gfx/wgpu_bindings/Cargo.toml new file mode 100644 index 0000000000..de3cb96af9 --- /dev/null +++ b/gfx/wgpu_bindings/Cargo.toml @@ -0,0 +1,63 @@ +[package] +name = "wgpu_bindings" +version = "0.1.0" +authors = [ + "Dzmitry Malyshau ", + "Joshua Groves ", +] +edition = "2018" +license = "MPL-2.0" +publish = false + +[lib] + +[features] +default = [] + +[dependencies.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "f71a1bc736fde37509262ca03e91d8f56a13aeb5" +#Note: "replay" shouldn't ideally be needed, +# but it allows us to serialize everything across IPC. +features = ["replay", "trace", "serial-pass", "strict_asserts", "wgsl"] + +# We want the wgpu-core Metal backend on macOS and iOS. +# (We should consider also enabling "vulkan" for Vulkan Portability.) +[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "f71a1bc736fde37509262ca03e91d8f56a13aeb5" +features = ["metal"] + +# We want the wgpu-core Direct3D backends on Windows. +[target.'cfg(windows)'.dependencies.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "f71a1bc736fde37509262ca03e91d8f56a13aeb5" +features = ["dx11", "dx12"] + +# 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.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "f71a1bc736fde37509262ca03e91d8f56a13aeb5" +features = ["vulkan"] + +[dependencies.wgt] +package = "wgpu-types" +git = "https://github.com/gfx-rs/wgpu" +rev = "f71a1bc736fde37509262ca03e91d8f56a13aeb5" + +[dependencies.wgh] +package = "wgpu-hal" +git = "https://github.com/gfx-rs/wgpu" +rev = "f71a1bc736fde37509262ca03e91d8f56a13aeb5" + +[dependencies] +bincode = "1" +log = "0.4" +parking_lot = "0.11" +serde = "1" +nsstring = { path = "../../xpcom/rust/nsstring" } +static_prefs = { path = "../../modules/libpref/init/static_prefs" } -- cgit v1.2.3