2023-01-14 16:07:46 +00:00
|
|
|
# Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
2021-09-03 17:23:35 +00:00
|
|
|
|
|
|
|
[package]
|
|
|
|
name = "deno_webgpu"
|
2023-01-14 16:07:46 +00:00
|
|
|
version = "0.85.0"
|
2021-09-03 17:23:35 +00:00
|
|
|
authors = ["the Deno authors"]
|
2022-10-20 05:41:17 +00:00
|
|
|
edition.workspace = true
|
2021-09-03 17:23:35 +00:00
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
2022-10-20 05:41:17 +00:00
|
|
|
repository.workspace = true
|
2021-09-03 17:23:35 +00:00
|
|
|
description = "WebGPU implementation for Deno"
|
|
|
|
|
2023-03-11 06:24:20 +00:00
|
|
|
[lib]
|
|
|
|
path = "lib.rs"
|
|
|
|
|
2023-01-09 15:44:20 +00:00
|
|
|
[features]
|
|
|
|
surface = ["wgpu-core/raw-window-handle", "dep:raw-window-handle"]
|
|
|
|
|
2023-06-06 10:58:20 +00:00
|
|
|
# We make all dependencies conditional on not being wasm,
|
|
|
|
# so the whole workspace can built as wasm.
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
deno_core.workspace = true
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
|
|
|
tokio = { workspace = true, features = ["full"] }
|
|
|
|
wgpu-types = { workspace = true, features = ["trace", "replay", "serde"] }
|
2023-01-09 15:44:20 +00:00
|
|
|
raw-window-handle = { workspace = true, optional = true }
|
2022-12-08 01:58:45 +00:00
|
|
|
|
2023-06-06 10:58:20 +00:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgpu-core]
|
2022-12-08 01:58:45 +00:00
|
|
|
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 backends on Windows.
|
|
|
|
[target.'cfg(windows)'.dependencies.wgpu-core]
|
|
|
|
workspace = true
|
|
|
|
features = ["dx11", "dx12"]
|
|
|
|
|
|
|
|
# We want the wgpu-core Vulkan backend on Unix (but not Emscripten) and Windows.
|
2023-02-15 21:46:00 +00:00
|
|
|
[target.'cfg(any(windows, all(unix, not(target_os = "emscripten"))))'.dependencies.wgpu-core]
|
2022-12-08 01:58:45 +00:00
|
|
|
workspace = true
|
|
|
|
features = ["vulkan"]
|