[package] name = "wgpu_bindings" version = "0.1.0" authors = [ "Dzmitry Malyshau ", "Joshua Groves ", ] edition = "2021" license = "MPL-2.0" publish = false [lib] [features] default = [] [dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" rev = "b285d3f9bb128a4c9c00951aa8e54303f6ac0b78" features = ["serde", "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" git = "https://github.com/gfx-rs/wgpu" rev = "b285d3f9bb128a4c9c00951aa8e54303f6ac0b78" 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 = "b285d3f9bb128a4c9c00951aa8e54303f6ac0b78" 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" git = "https://github.com/gfx-rs/wgpu" rev = "b285d3f9bb128a4c9c00951aa8e54303f6ac0b78" features = ["vulkan"] [dependencies.wgt] package = "wgpu-types" git = "https://github.com/gfx-rs/wgpu" rev = "b285d3f9bb128a4c9c00951aa8e54303f6ac0b78" [dependencies.wgh] package = "wgpu-hal" git = "https://github.com/gfx-rs/wgpu" rev = "b285d3f9bb128a4c9c00951aa8e54303f6ac0b78" features = ["device_lost_panic", "internal_error_panic"] [target.'cfg(windows)'.dependencies] windows = { version = "0.62", default-features = false, features = [ "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Direct3D12", ] } [target.'cfg(target_os = "macos")'.dependencies] objc2 = "0.6.3" objc2-foundation = { version = "0.3.2", default-features = false, features = [ "NSProcessInfo", ] } objc2-io-surface = { version = "0.3", default-features = false, features = [ "IOSurfaceTypes", "objc2-core-foundation", ] } objc2-metal = { version = "0.3", default-features = false, features = [ "MTLAllocation", "MTLResource", "MTLTexture", "objc2-io-surface", ] } [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" ash = "0.38" glean = { workspace = true } firefox-on-glean = { path = "../../toolkit/components/glean/api" }