no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / gfx / wgpu_bindings / Cargo.toml
blobd14227ee093d858e65e8a880f1b8511271431cc4
1 [package]
2 name = "wgpu_bindings"
3 version = "0.1.0"
4 authors = [
5         "Dzmitry Malyshau <kvark@mozilla.com>",
6         "Joshua Groves <josh@joshgroves.com>",
8 edition = "2018"
9 license = "MPL-2.0"
10 publish = false
12 [lib]
14 [features]
15 default = []
17 [dependencies.wgc]
18 package = "wgpu-core"
19 git = "https://github.com/gfx-rs/wgpu"
20 rev = "64a61ee5c69569bbb3db03563997e88a229eba17"
21 # TODO: remove the replay feature on the next update containing https://github.com/gfx-rs/wgpu/pull/5182
22 features = ["serde", "replay", "trace", "strict_asserts", "wgsl", "api_log_info"]
24 # We want the wgpu-core Metal backend on macOS and iOS.
25 # (We should consider also enabling "vulkan" for Vulkan Portability.)
26 [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgc]
27 package = "wgpu-core"
28 git = "https://github.com/gfx-rs/wgpu"
29 rev = "64a61ee5c69569bbb3db03563997e88a229eba17"
30 features = ["metal"]
32 # We want the wgpu-core Direct3D backends on Windows.
33 [target.'cfg(windows)'.dependencies.wgc]
34 package = "wgpu-core"
35 git = "https://github.com/gfx-rs/wgpu"
36 rev = "64a61ee5c69569bbb3db03563997e88a229eba17"
37 features = ["dx12"]
39 # We want the wgpu-core Vulkan backend on Linux and Windows.
40 [target.'cfg(any(windows, all(unix, not(any(target_os = "macos", target_os = "ios")))))'.dependencies.wgc]
41 package = "wgpu-core"
42 git = "https://github.com/gfx-rs/wgpu"
43 rev = "64a61ee5c69569bbb3db03563997e88a229eba17"
44 features = ["vulkan"]
46 [dependencies.wgt]
47 package = "wgpu-types"
48 git = "https://github.com/gfx-rs/wgpu"
49 rev = "64a61ee5c69569bbb3db03563997e88a229eba17"
51 [dependencies.wgh]
52 package = "wgpu-hal"
53 git = "https://github.com/gfx-rs/wgpu"
54 rev = "64a61ee5c69569bbb3db03563997e88a229eba17"
55 features = ["oom_panic", "device_lost_panic", "internal_error_panic"]
57 [target.'cfg(windows)'.dependencies]
58 windows = { version = "0.58", default-features = false, features = ["Win32_Graphics_Direct3D12"]}
60 [dependencies]
61 bincode = "1"
62 log = "0.4"
63 parking_lot = "0.12"
64 serde = "1"
65 nsstring = { path = "../../xpcom/rust/nsstring" }
66 static_prefs = { path = "../../modules/libpref/init/static_prefs" }
67 arrayvec = "0.7"
68 ash = "0.38"