mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
12e07eb1bf
* build(deps): bump the patch-updates group across 1 directory with 23 updates Bumps the patch-updates group with 18 updates in the / directory: | Package | From | To | | --- | --- | --- | | [document-features](https://github.com/slint-ui/document-features) | `0.2.8` | `0.2.9` | | [glam](https://github.com/bitshifter/glam-rs) | `0.27.0` | `0.28.0` | | [serde](https://github.com/serde-rs/serde) | `1.0.203` | `1.0.204` | | [serde_json](https://github.com/serde-rs/json) | `1.0.119` | `1.0.120` | | [metal](https://github.com/gfx-rs/metal-rs) | `0.28.0` | `0.29.0` | | [syn](https://github.com/dtolnay/syn) | `2.0.68` | `2.0.70` | | [ab_glyph](https://github.com/alexheretic/ab-glyph) | `0.2.27` | `0.2.28` | | [async-trait](https://github.com/dtolnay/async-trait) | `0.1.80` | `0.1.81` | | [cc](https://github.com/rust-lang/cc-rs) | `1.0.103` | `1.1.0` | | [clap](https://github.com/clap-rs/clap) | `4.5.8` | `4.5.9` | | [deno_unsync](https://github.com/denoland/deno_unsync) | `0.3.5` | `0.3.10` | | oorandom | `11.1.3` | `11.1.4` | | [tinyvec](https://github.com/Lokathor/tinyvec) | `1.6.1` | `1.8.0` | | [unicode-id-start](https://github.com/Boshen/unicode-id-start) | `1.1.2` | `1.2.0` | | [uuid](https://github.com/uuid-rs/uuid) | `1.9.1` | `1.10.0` | | [wayland-backend](https://github.com/smithay/wayland-rs) | `0.3.4` | `0.3.5` | | [windows_i686_gnullvm](https://github.com/microsoft/windows-rs) | `0.52.5` | `0.52.6` | | [zerocopy](https://github.com/google/zerocopy) | `0.7.34` | `0.7.35` | Updates `document-features` from 0.2.8 to 0.2.9 - [Release notes](https://github.com/slint-ui/document-features/releases) - [Changelog](https://github.com/slint-ui/document-features/blob/master/CHANGELOG.md) - [Commits](https://github.com/slint-ui/document-features/compare/v0.2.8...v0.2.9) Updates `glam` from 0.27.0 to 0.28.0 - [Changelog](https://github.com/bitshifter/glam-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitshifter/glam-rs/compare/0.27.0...0.28.0) Updates `serde` from 1.0.203 to 1.0.204 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.203...v1.0.204) Updates `serde_json` from 1.0.119 to 1.0.120 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.119...v1.0.120) Updates `metal` from 0.28.0 to 0.29.0 - [Release notes](https://github.com/gfx-rs/metal-rs/releases) - [Commits](https://github.com/gfx-rs/metal-rs/commits) Updates `syn` from 2.0.68 to 2.0.70 - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/2.0.68...2.0.70) Updates `ab_glyph` from 0.2.27 to 0.2.28 - [Release notes](https://github.com/alexheretic/ab-glyph/releases) - [Commits](https://github.com/alexheretic/ab-glyph/compare/ab-glyph-0.2.27...ab-glyph-0.2.28) Updates `async-trait` from 0.1.80 to 0.1.81 - [Release notes](https://github.com/dtolnay/async-trait/releases) - [Commits](https://github.com/dtolnay/async-trait/compare/0.1.80...0.1.81) Updates `cc` from 1.0.103 to 1.1.0 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.103...cc-v1.1.0) Updates `clap` from 4.5.8 to 4.5.9 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.8...v4.5.9) Updates `clap_builder` from 4.5.8 to 4.5.9 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.5.8...v4.5.9) Updates `deno_unsync` from 0.3.5 to 0.3.10 - [Commits](https://github.com/denoland/deno_unsync/commits) Updates `oorandom` from 11.1.3 to 11.1.4 Updates `owned_ttf_parser` from 0.21.0 to 0.24.0 - [Release notes](https://github.com/alexheretic/owned-ttf-parser/releases) - [Changelog](https://github.com/alexheretic/owned-ttf-parser/blob/main/CHANGELOG.md) - [Commits](https://github.com/alexheretic/owned-ttf-parser/compare/0.21.0...0.24.0) Updates `serde_derive` from 1.0.203 to 1.0.204 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.203...v1.0.204) Updates `tinyvec` from 1.6.1 to 1.8.0 - [Changelog](https://github.com/Lokathor/tinyvec/blob/main/CHANGELOG.md) - [Commits](https://github.com/Lokathor/tinyvec/compare/v1.6.1...v1.8.0) Updates `ttf-parser` from 0.21.1 to 0.24.0 - [Changelog](https://github.com/RazrFalcon/ttf-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/RazrFalcon/ttf-parser/compare/v0.21.1...v0.24.0) Updates `unicode-id-start` from 1.1.2 to 1.2.0 - [Commits](https://github.com/Boshen/unicode-id-start/commits) Updates `uuid` from 1.9.1 to 1.10.0 - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/1.9.1...1.10.0) Updates `wayland-backend` from 0.3.4 to 0.3.5 - [Release notes](https://github.com/smithay/wayland-rs/releases) - [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md) - [Commits](https://github.com/smithay/wayland-rs/commits) Updates `windows_i686_gnullvm` from 0.52.5 to 0.52.6 - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/commits) Updates `zerocopy` from 0.7.34 to 0.7.35 - [Release notes](https://github.com/google/zerocopy/releases) - [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md) - [Commits](https://github.com/google/zerocopy/commits) Updates `zerocopy-derive` from 0.7.34 to 0.7.35 - [Release notes](https://github.com/google/zerocopy/releases) - [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md) - [Commits](https://github.com/google/zerocopy/commits) --- updated-dependencies: - dependency-name: document-features dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: glam dependency-type: direct:production update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: metal dependency-type: direct:production update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: ab_glyph dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: async-trait dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: cc dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: clap dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: clap_builder dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: deno_unsync dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: oorandom dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: owned_ttf_parser dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: serde_derive dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: tinyvec dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: ttf-parser dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: unicode-id-start dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: uuid dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: wayland-backend dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: windows_i686_gnullvm dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: zerocopy dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: zerocopy-derive dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates ... Signed-off-by: dependabot[bot] <support@github.com> * Update encase to resolve glam dependency issue --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andreas Reich <r_andreas2@web.de>
216 lines
6.1 KiB
TOML
216 lines
6.1 KiB
TOML
[package]
|
|
name = "wgpu-hal"
|
|
version = "0.20.0"
|
|
authors = ["gfx-rs developers"]
|
|
edition = "2021"
|
|
description = "WebGPU hardware abstraction layer"
|
|
homepage = "https://wgpu.rs/"
|
|
repository = "https://github.com/gfx-rs/wgpu"
|
|
keywords = ["graphics"]
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
# Override the workspace's `rust-version` key. Firefox uses `cargo vendor` to
|
|
# copy the crates it actually uses out of the workspace, so it's meaningful for
|
|
# them to have less restrictive MSRVs individually than the workspace as a
|
|
# whole, if their code permits. See `../README.md` for details.
|
|
rust-version = "1.74"
|
|
|
|
[package.metadata.docs.rs]
|
|
# Ideally we would enable all the features.
|
|
#
|
|
# However, the metal features fail to be documented because the docs.rs runner cross-compiling under
|
|
# x86_64-unknown-linux-gnu and metal-rs cannot compile in that environment at the moment. The same applies
|
|
# for the dx12 feature.
|
|
features = ["vulkan", "gles", "renderdoc"]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
targets = [
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"wasm32-unknown-unknown",
|
|
]
|
|
|
|
[package.metadata.cargo-machete]
|
|
# Cargo machete can't check build.rs dependencies. See https://github.com/bnjbvr/cargo-machete/issues/100
|
|
ignored = ["cfg_aliases"]
|
|
|
|
[lib]
|
|
|
|
[features]
|
|
## Enables the Metal backend when targeting Apple platforms.
|
|
##
|
|
## Has no effect on non-Apple platforms.
|
|
metal = [
|
|
# Metal is only available on Apple platforms, therefore request MSL output also only if we target an Apple platform.
|
|
"naga/msl-out-if-target-apple",
|
|
"dep:block",
|
|
]
|
|
vulkan = [
|
|
"naga/spv-out",
|
|
"dep:ash",
|
|
"dep:gpu-alloc",
|
|
"dep:gpu-descriptor",
|
|
"dep:libloading",
|
|
"dep:smallvec",
|
|
"dep:android_system_properties",
|
|
]
|
|
gles = [
|
|
"naga/glsl-out",
|
|
"dep:glow",
|
|
"dep:glutin_wgl_sys",
|
|
"dep:khronos-egl",
|
|
"dep:libloading",
|
|
"dep:ndk-sys",
|
|
"winapi/libloaderapi",
|
|
]
|
|
## Enables the DX12 backend when targeting Windows.
|
|
##
|
|
## Has no effect if not targeting Windows.
|
|
dx12 = [
|
|
# DX12 is only available on Windows, therefore request HLSL output also only if we target Windows.
|
|
"naga/hlsl-out-if-target-windows",
|
|
"dep:d3d12",
|
|
"dep:bit-set",
|
|
"dep:libloading",
|
|
"dep:range-alloc",
|
|
"winapi/std",
|
|
"winapi/winbase",
|
|
"winapi/d3d12",
|
|
"winapi/d3d12shader",
|
|
"winapi/d3d12sdklayers",
|
|
"winapi/dxgi1_6",
|
|
"winapi/errhandlingapi",
|
|
]
|
|
# TODO: This is a separate feature until Mozilla okays windows-rs, see https://github.com/gfx-rs/wgpu/issues/3207 for the tracking issue.
|
|
windows_rs = ["dep:gpu-allocator"]
|
|
dxc_shader_compiler = ["dep:hassle-rs"]
|
|
renderdoc = ["dep:libloading", "dep:renderdoc-sys"]
|
|
fragile-send-sync-non-atomic-wasm = ["wgt/fragile-send-sync-non-atomic-wasm"]
|
|
# Panic when running into an out-of-memory error (for debugging purposes).
|
|
#
|
|
# Only affects the d3d12 and vulkan backends.
|
|
oom_panic = []
|
|
# Panic when running into a device lost error (for debugging purposes).
|
|
# Only affects the d3d12 and vulkan backends.
|
|
device_lost_panic = []
|
|
# Panic when running into an internal error other than out-of-memory and device lost
|
|
# (for debugging purposes).
|
|
#
|
|
# Only affects the d3d12 and vulkan backends.
|
|
internal_error_panic = []
|
|
|
|
[[example]]
|
|
name = "halmark"
|
|
|
|
[[example]]
|
|
name = "raw-gles"
|
|
required-features = ["gles"]
|
|
|
|
[dependencies]
|
|
bitflags = "2"
|
|
parking_lot = ">=0.11, <0.13"
|
|
profiling = { version = "1", default-features = false }
|
|
raw-window-handle = "0.6"
|
|
thiserror = "1"
|
|
once_cell = "1.19.0"
|
|
|
|
# backends common
|
|
arrayvec = "0.7"
|
|
rustc-hash = "1.1"
|
|
log = "0.4"
|
|
|
|
# backend: Gles
|
|
glow = { version = "0.13.1", optional = true }
|
|
|
|
[dependencies.wgt]
|
|
package = "wgpu-types"
|
|
path = "../wgpu-types"
|
|
version = "0.20.0"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# backend: Vulkan
|
|
ash = { version = "0.38.0", optional = true }
|
|
gpu-alloc = { version = "0.6", optional = true }
|
|
gpu-descriptor = { version = "0.3", optional = true }
|
|
smallvec = { version = "1", optional = true, features = ["union"] }
|
|
|
|
khronos-egl = { version = "6", features = ["dynamic"], optional = true }
|
|
libloading = { version = ">=0.7, <0.9", optional = true }
|
|
renderdoc-sys = { version = "1.1.0", optional = true }
|
|
|
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
|
khronos-egl = { version = "6", features = ["static", "no-pkg-config"] }
|
|
#Note: it's unused by emscripten, but we keep it to have single code base in egl.rs
|
|
libloading = { version = ">=0.7, <0.9", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
# backend: Dx12
|
|
bit-set = { version = "0.6", optional = true }
|
|
range-alloc = { version = "0.1", optional = true }
|
|
gpu-allocator = { version = "0.26", default-features = false, features = [
|
|
"d3d12",
|
|
"public-winapi",
|
|
], optional = true }
|
|
hassle-rs = { version = "0.11", optional = true }
|
|
# backend: Gles
|
|
glutin_wgl_sys = { version = "0.6", optional = true }
|
|
|
|
winapi = { version = "0.3", features = [
|
|
"profileapi",
|
|
"windef",
|
|
"winuser",
|
|
"dcomp",
|
|
] }
|
|
d3d12 = { path = "../d3d12/", version = "0.20.0", optional = true, features = [
|
|
"libloading",
|
|
] }
|
|
|
|
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies]
|
|
# backend: Metal
|
|
block = { version = "0.1", optional = true }
|
|
|
|
metal = { version = "0.29.0" }
|
|
objc = "0.2.5"
|
|
core-graphics-types = "0.1"
|
|
|
|
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
|
|
wasm-bindgen = "0.2.87"
|
|
web-sys = { version = "0.3.69", features = [
|
|
"Window",
|
|
"HtmlCanvasElement",
|
|
"WebGl2RenderingContext",
|
|
"OffscreenCanvas",
|
|
] }
|
|
js-sys = "0.3.69"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
android_system_properties = { version = "0.1.1", optional = true }
|
|
ndk-sys = { version = "0.5.0", optional = true }
|
|
|
|
[dependencies.naga]
|
|
path = "../naga"
|
|
version = "0.20.0"
|
|
|
|
[build-dependencies]
|
|
cfg_aliases.workspace = true
|
|
|
|
# DEV dependencies
|
|
[dev-dependencies.naga]
|
|
path = "../naga"
|
|
version = "0.20.0"
|
|
features = ["wgsl-in"]
|
|
|
|
[dev-dependencies]
|
|
cfg-if = "1"
|
|
env_logger = "0.11"
|
|
glam.workspace = true # for ray-traced-triangle example
|
|
winit = { version = "0.29", features = [
|
|
"android-native-activity",
|
|
] } # for "halmark" example
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
glutin = "0.29.1" # for "gles" example
|