mirror of
https://github.com/denoland/deno.git
synced 2024-12-01 16:51:13 -05:00
857393d934
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
43 lines
1.3 KiB
TOML
43 lines
1.3 KiB
TOML
# Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "deno_webgpu"
|
|
version = "0.93.0"
|
|
authors = ["the Deno authors"]
|
|
edition.workspace = true
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
repository = "https://github.com/gfx-rs/wgpu"
|
|
description = "WebGPU implementation for Deno"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
surface = ["wgpu-core/raw-window-handle", "dep:raw-window-handle"]
|
|
|
|
[dependencies]
|
|
deno_core.workspace = true
|
|
raw-window-handle = { workspace = true, optional = true }
|
|
serde.workspace = true
|
|
tokio.workspace = true
|
|
wgpu-types = { workspace = true, features = ["trace", "replay", "serde"] }
|
|
|
|
[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 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.
|
|
[target.'cfg(any(windows, all(unix, not(target_arch = "emscripten"))))'.dependencies.wgpu-core]
|
|
workspace = true
|
|
features = ["vulkan"]
|