wgpu/wgpu-hal/Cargo.toml

102 lines
2.9 KiB
TOML
Raw Normal View History

2021-06-04 05:19:36 +00:00
[package]
name = "wgpu-hal"
2021-12-17 04:57:21 +00:00
version = "0.12.0"
2021-06-04 05:19:36 +00:00
authors = ["wgpu developers"]
edition = "2018"
description = "WebGPU hardware abstraction layer"
homepage = "https://github.com/gfx-rs/wgpu"
repository = "https://github.com/gfx-rs/wgpu"
keywords = ["graphics"]
2021-06-08 15:46:53 +00:00
license = "MIT OR Apache-2.0"
2021-06-04 05:19:36 +00:00
[lib]
[features]
2021-06-10 14:54:06 +00:00
default = []
metal = ["naga/msl-out", "block", "foreign-types"]
2021-07-14 16:40:01 +00:00
vulkan = ["naga/spv-out", "ash", "gpu-alloc", "gpu-descriptor", "libloading", "inplace_it"]
gles = ["naga/glsl-out", "glow", "egl", "libloading"]
dx12 = ["naga/hlsl-out", "native", "bit-set", "range-alloc", "winapi/d3d12", "winapi/d3d12shader", "winapi/d3d12sdklayers", "winapi/dxgi1_6"]
2021-07-14 16:40:01 +00:00
renderdoc = ["libloading", "renderdoc-sys"]
2021-06-04 05:19:36 +00:00
[[example]]
name = "halmark"
[[example]]
name = "raw-gles"
required-features = ["gles"]
2021-06-04 05:19:36 +00:00
[dependencies]
bitflags = "1.0"
2021-06-11 19:53:07 +00:00
parking_lot = "0.11"
profiling = { version = "1", default-features = false }
2021-11-23 09:42:22 +00:00
raw-window-handle = "0.4"
2021-06-06 04:34:02 +00:00
thiserror = "1"
2021-06-05 05:44:21 +00:00
2021-06-11 06:09:03 +00:00
# backends common
2021-07-05 20:45:48 +00:00
arrayvec = "0.7"
2021-06-11 06:09:03 +00:00
fxhash = "0.2.1"
log = "0.4"
2021-07-14 16:40:01 +00:00
renderdoc-sys = { version = "0.7.1", optional = true }
2021-06-11 06:09:03 +00:00
# backend: Metal
2021-06-10 14:54:06 +00:00
block = { version = "0.1", optional = true }
2021-06-09 21:06:43 +00:00
foreign-types = { version = "0.3", optional = true }
2021-07-14 16:40:01 +00:00
2021-06-11 06:09:03 +00:00
# backend: Vulkan
2021-12-28 14:50:22 +00:00
ash = { version = "0.35", optional = true }
gpu-alloc = { version = "0.5", optional = true }
gpu-descriptor = { version = "0.2", optional = true }
2021-06-11 06:09:03 +00:00
inplace_it = { version ="0.3.3", optional = true }
2021-07-14 16:40:01 +00:00
# backend: Gles
2021-12-17 04:57:21 +00:00
glow = { version = "0.11.1", optional = true }
2021-07-14 16:40:01 +00:00
2021-07-05 06:17:09 +00:00
# backend: Dx12
2021-07-06 04:45:47 +00:00
bit-set = { version = "0.5", optional = true }
range-alloc = { version = "0.1", optional = true }
[dependencies.wgt]
package = "wgpu-types"
path = "../wgpu-types"
2021-12-17 04:57:21 +00:00
version = "0.12"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
egl = { package = "khronos-egl", version = "4.1", features = ["dynamic"], optional = true }
2021-07-14 16:40:01 +00:00
#Note: it's only unused on Apple platforms
libloading = { version = "0.7", optional = true }
2021-06-08 15:46:53 +00:00
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["libloaderapi", "windef", "winuser"] }
native = { package = "d3d12", version = "0.4.1", features = ["libloading"], optional = true }
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies]
2022-01-11 01:46:08 +00:00
mtl = { package = "metal", git = "https://github.com/gfx-rs/metal-rs", rev = "140c8f4" }
objc = "0.2.5"
core-graphics-types = "0.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2" }
web-sys = { version = "0.3", features = ["Window", "HtmlCanvasElement", "WebGl2RenderingContext"] }
js-sys = { version = "0.3" }
2021-06-05 05:44:21 +00:00
[dependencies.naga]
2021-12-25 04:48:06 +00:00
git = "https://github.com/gfx-rs/naga"
2022-01-11 16:14:11 +00:00
rev = "c0b7ac7"
2021-12-25 04:48:06 +00:00
#version = "0.8"
2021-06-08 18:58:48 +00:00
# DEV dependencies
2021-06-08 18:58:48 +00:00
[dev-dependencies.naga]
2021-12-25 04:48:06 +00:00
git = "https://github.com/gfx-rs/naga"
2022-01-11 16:14:11 +00:00
rev = "c0b7ac7"
2021-12-25 04:48:06 +00:00
#version = "0.8"
2021-06-08 18:58:48 +00:00
features = ["wgsl-in"]
[dev-dependencies]
env_logger = "0.8"
winit = "0.26" # for "halmark" example
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
glutin = "0.28" # for "gles" example