wgpu/wgpu-core/Cargo.toml

77 lines
2.4 KiB
TOML
Raw Normal View History

2019-11-16 02:17:07 +00:00
[package]
name = "wgpu-core"
version.workspace = true
authors.workspace = true
edition.workspace = true
2021-10-01 17:50:19 +00:00
description = "WebGPU core logic on wgpu-hal"
homepage.workspace = true
repository.workspace = true
keywords.workspace = true
license.workspace = true
2019-11-16 02:17:07 +00:00
[lib]
[features]
default = []
# Apply run-time checks, even in release builds. These are in addition
# to the validation carried out at public APIs in all builds.
strict_asserts = []
angle = ["hal/gles"]
# Enable API tracing
2021-06-21 17:05:29 +00:00
trace = ["ron", "serde", "wgt/trace", "arrayvec/serde", "naga/serialize"]
# Enable API replaying
2021-06-21 17:05:29 +00:00
replay = ["serde", "wgt/replay", "arrayvec/serde", "naga/deserialize"]
# Enable serializable compute/render passes, and bundle encoders.
serial-pass = ["serde", "wgt/serde", "arrayvec/serde"]
2022-02-08 02:58:07 +00:00
id32 = []
# Enable `ShaderModuleSource::Wgsl`
wgsl = ["naga/wgsl-in"]
vulkan-portability = ["hal/vulkan"]
2019-11-16 02:17:07 +00:00
[dependencies]
arrayvec.workspace = true
bitflags.workspace = true
bit-vec.workspace = true
codespan-reporting.workspace = true
fxhash.workspace = true
log.workspace = true
parking_lot.workspace = true
profiling.workspace = true
raw-window-handle = { workspace = true, optional = true }
ron = { workspace = true, optional = true }
serde = { workspace = true, features = ["serde_derive"], optional = true }
smallvec.workspace = true
thiserror.workspace = true
2020-12-21 19:24:52 +00:00
[dependencies.naga]
workspace = true
features = ["clone", "span", "validate"]
[dependencies.wgt]
workspace = true
2021-06-04 05:19:36 +00:00
[dependencies.hal]
workspace = true
2021-06-04 05:19:36 +00:00
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
web-sys = { workspace = true, features = ["HtmlCanvasElement", "OffscreenCanvas"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
hal = { workspace = true, features = ["gles"] }
2021-06-08 15:46:53 +00:00
[target.'cfg(all(not(target_arch = "wasm32"), any(target_os = "ios", target_os = "macos")))'.dependencies]
hal = { workspace = true, features = ["metal"] }
2021-06-08 15:46:53 +00:00
#Note: could also enable "vulkan" for Vulkan Portability
2021-06-12 05:04:15 +00:00
[target.'cfg(all(not(target_arch = "wasm32"), unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies]
hal = { workspace = true, features = ["vulkan", "gles", "renderdoc"] }
2021-06-11 19:53:07 +00:00
2021-06-15 19:58:12 +00:00
[target.'cfg(all(not(target_arch = "wasm32"), windows))'.dependencies]
hal = { workspace = true, features = ["vulkan", "dx12", "dx11", "renderdoc"] }
2021-06-15 19:58:12 +00:00
2022-01-25 10:35:45 +00:00
[target.'cfg(target_os = "emscripten")'.dependencies]
hal = { workspace = true, features = ["emscripten"] }
2022-01-25 10:35:45 +00:00
[build-dependencies]
cfg_aliases.workspace = true