Source code

Revision control

Copy as Markdown

Other Tools

[package]
name = "wgpu_bindings"
version = "0.1.0"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
"Joshua Groves <josh@joshgroves.com>",
]
edition = "2018"
license = "MPL-2.0"
publish = false
[lib]
[features]
default = []
[dependencies.wgc]
package = "wgpu-core"
rev = "2b0e3ed01cfcc4bcccc7fd63b2581b260c00b089"
# TODO: remove the replay feature on the next update containing https://github.com/gfx-rs/wgpu/pull/5182
features = ["serde", "replay", "trace", "strict_asserts", "wgsl", "api_log_info"]
# 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"
rev = "2b0e3ed01cfcc4bcccc7fd63b2581b260c00b089"
features = ["metal"]
# We want the wgpu-core Direct3D backends on Windows.
[target.'cfg(windows)'.dependencies.wgc]
package = "wgpu-core"
rev = "2b0e3ed01cfcc4bcccc7fd63b2581b260c00b089"
features = ["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"
rev = "2b0e3ed01cfcc4bcccc7fd63b2581b260c00b089"
features = ["vulkan"]
[dependencies.wgt]
package = "wgpu-types"
rev = "2b0e3ed01cfcc4bcccc7fd63b2581b260c00b089"
[dependencies.wgh]
package = "wgpu-hal"
rev = "2b0e3ed01cfcc4bcccc7fd63b2581b260c00b089"
features = ["windows_rs", "oom_panic", "device_lost_panic", "internal_error_panic"]
[target.'cfg(windows)'.dependencies.d3d12]
rev = "2b0e3ed01cfcc4bcccc7fd63b2581b260c00b089"
[target.'cfg(windows)'.dependencies]
winapi = "0.3"
[dependencies]
bincode = "1"
log = "0.4"
parking_lot = "0.12"
serde = "1"
nsstring = { path = "../../xpcom/rust/nsstring" }
static_prefs = { path = "../../modules/libpref/init/static_prefs" }
arrayvec = "0.7"