mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
4face1c2ba
* Add serde, serialize, deserialize features to wgpu and wgpu-core Remove trace, replay features from wgpu-types * Do not use trace, replay in wgpu-types anymore * Make use of deserialize, serialize features in wgpu-core * Make use of serialize, deserialize features in wgpu * Run cargo fmt * Use serde(default) for deserialize only * Fix serial-pass feature * Add a comment for new features * Add CHANGELOG entry * Run cargo fmt * serial-pass also needs serde features for Id<T> * Add feature documentation to lib.rs docs * wgpu-types implicit serde feature * wgpu-core explicit serde feature * wgpu explicit serde feature * Update CHANGELOG.md * Fix compilation with default features * Address review comments
51 lines
1.6 KiB
TOML
51 lines
1.6 KiB
TOML
# Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "deno_webgpu"
|
|
version = "0.85.0"
|
|
authors = ["the Deno authors"]
|
|
edition.workspace = true
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
repository.workspace = true
|
|
description = "WebGPU implementation for Deno"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
surface = ["wgpu-core/raw-window-handle", "dep:raw-window-handle"]
|
|
|
|
# We make all dependencies conditional on not being wasm,
|
|
# so the whole workspace can built as wasm.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
deno_core.workspace = true
|
|
serde = { workspace = true, features = ["derive"] }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
wgpu-types = { workspace = true, features = ["serde"] }
|
|
raw-window-handle = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["trace", "replay", "serde", "strict_asserts", "wgsl", "gles"]
|
|
|
|
# We want the wgpu-core Metal backend on macOS and iOS.
|
|
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["metal"]
|
|
|
|
# We want the wgpu-core Direct3D backend on Windows.
|
|
[target.'cfg(windows)'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["dx12"]
|
|
|
|
[target.'cfg(windows)'.dependencies.wgpu-hal]
|
|
version = "0.19.0"
|
|
path = "../wgpu-hal"
|
|
features = ["windows_rs"]
|
|
|
|
# We want the wgpu-core Vulkan backend on Unix (but not Emscripten) and Windows.
|
|
[target.'cfg(any(windows, all(unix, not(target_os = "emscripten"))))'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["vulkan"]
|