wgpu/wgpu-core/Cargo.toml

133 lines
3.6 KiB
TOML
Raw Normal View History

2019-11-16 02:17:07 +00:00
[package]
name = "wgpu-core"
2024-04-28 22:06:35 +00:00
version = "0.20.0"
authors = ["gfx-rs developers"]
2022-12-15 20:46:28 +00:00
edition = "2021"
2021-10-01 17:50:19 +00:00
description = "WebGPU core logic on wgpu-hal"
2022-12-15 20:46:28 +00:00
homepage = "https://wgpu.rs/"
repository = "https://github.com/gfx-rs/wgpu"
keywords = ["graphics"]
license = "MIT OR Apache-2.0"
2019-11-16 02:17:07 +00:00
# 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]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
2023-02-09 20:38:40 +00:00
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"]
2019-11-16 02:17:07 +00:00
[lib]
[features]
## Log all API entry points at info instead of trace level.
api_log_info = []
## Log resource lifecycle management at info instead of trace level.
resource_log_info = []
## Support the Renderdoc graphics debugger:
## <https://renderdoc.org/>
renderdoc = ["hal/renderdoc"]
## Apply run-time checks, even in release builds. These are in addition
## to the validation carried out at public APIs in all builds.
2022-12-20 00:17:19 +00:00
strict_asserts = ["wgt/strict_asserts"]
## Enables serialization via `serde` on common wgpu types.
serde = ["dep:serde", "wgt/serde", "arrayvec/serde"]
## Enable API tracing.
trace = ["dep:ron", "serde", "naga/serialize"]
## Enable API replaying
replay = ["serde", "naga/deserialize"]
## Enable `ShaderModuleSource::Wgsl`
wgsl = ["naga/wgsl-in"]
## Enable `ShaderModuleSource::Glsl`
glsl = ["naga/glsl-in"]
## Enable `ShaderModuleSource::SpirV`
spirv = ["naga/spv-in", "dep:bytemuck"]
## Implement `Send` and `Sync` on Wasm, but only if atomics are not enabled.
##
## WebGL/WebGPU objects can not be shared between threads.
## However, it can be useful to artificially mark them as `Send` and `Sync`
## anyways to make it easier to write cross-platform code.
## This is technically *very* unsafe in a multithreaded environment,
## but on a wasm binary compiled without atomics we know we are definitely
## not in a multithreaded environment.
2023-10-25 17:53:22 +00:00
fragile-send-sync-non-atomic-wasm = [
"hal/fragile-send-sync-non-atomic-wasm",
"wgt/fragile-send-sync-non-atomic-wasm",
]
2019-11-16 02:17:07 +00:00
#! ### Backends, passed through to wgpu-hal
# --------------------------------------------------------------------
## Enable the `metal` backend.
metal = ["hal/metal"]
## Enable the `vulkan` backend.
vulkan = ["hal/vulkan"]
## Enable the `GLES` backend.
##
## This is used for all of GLES, OpenGL, and WebGL.
gles = ["hal/gles"]
## Enable the `dx12` backend.
dx12 = ["hal/dx12"]
2019-11-16 02:17:07 +00:00
[dependencies]
2022-12-15 20:46:28 +00:00
arrayvec = "0.7"
bit-vec = "0.6"
bitflags = "2"
build(deps): bump the patch-updates group with 19 updates (#5720) Bumps the patch-updates group with 19 updates: | Package | From | To | | --- | --- | --- | | [anyhow](https://github.com/dtolnay/anyhow) | `1.0.83` | `1.0.86` | | [bytemuck](https://github.com/Lokathor/bytemuck) | `1.15.0` | `1.16.0` | | [libc](https://github.com/rust-lang/libc) | `0.2.154` | `0.2.155` | | [raw-window-handle](https://github.com/rust-windowing/raw-window-handle) | `0.6.1` | `0.6.2` | | [serde](https://github.com/serde-rs/serde) | `1.0.201` | `1.0.202` | | [thiserror](https://github.com/dtolnay/thiserror) | `1.0.60` | `1.0.61` | | [syn](https://github.com/dtolnay/syn) | `2.0.63` | `2.0.65` | | [cc](https://github.com/rust-lang/cc-rs) | `1.0.97` | `1.0.98` | | [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) | `0.8.19` | `0.8.20` | | [either](https://github.com/rayon-rs/either) | `1.11.0` | `1.12.0` | | [instant](https://github.com/sebcrozet/instant) | `0.1.12` | `0.1.13` | | [linux-raw-sys](https://github.com/sunfishcode/linux-raw-sys) | `0.4.13` | `0.4.14` | | [miniz_oxide](https://github.com/Frommi/miniz_oxide) | `0.7.2` | `0.7.3` | | [proc-macro2](https://github.com/dtolnay/proc-macro2) | `1.0.82` | `1.0.83` | | [rustversion](https://github.com/dtolnay/rustversion) | `1.0.16` | `1.0.17` | | [serde_derive](https://github.com/serde-rs/serde) | `1.0.201` | `1.0.202` | | [smol_str](https://github.com/rust-analyzer/smol_str) | `0.2.1` | `0.2.2` | | [thiserror-impl](https://github.com/dtolnay/thiserror) | `1.0.60` | `1.0.61` | | [toml_datetime](https://github.com/toml-rs/toml) | `0.6.5` | `0.6.6` | Updates `anyhow` from 1.0.83 to 1.0.86 - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.83...1.0.86) Updates `bytemuck` from 1.15.0 to 1.16.0 - [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md) - [Commits](https://github.com/Lokathor/bytemuck/compare/v1.15.0...v1.16.0) Updates `libc` from 0.2.154 to 0.2.155 - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.154...0.2.155) Updates `raw-window-handle` from 0.6.1 to 0.6.2 - [Release notes](https://github.com/rust-windowing/raw-window-handle/releases) - [Changelog](https://github.com/rust-windowing/raw-window-handle/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-windowing/raw-window-handle/compare/v0.6.1...v0.6.2) Updates `serde` from 1.0.201 to 1.0.202 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.201...v1.0.202) Updates `thiserror` from 1.0.60 to 1.0.61 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.60...1.0.61) Updates `syn` from 2.0.63 to 2.0.65 - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/2.0.63...2.0.65) Updates `cc` from 1.0.97 to 1.0.98 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.97...1.0.98) Updates `crossbeam-utils` from 0.8.19 to 0.8.20 - [Release notes](https://github.com/crossbeam-rs/crossbeam/releases) - [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md) - [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.19...crossbeam-utils-0.8.20) Updates `either` from 1.11.0 to 1.12.0 - [Commits](https://github.com/rayon-rs/either/compare/1.11.0...1.12.0) Updates `instant` from 0.1.12 to 0.1.13 - [Changelog](https://github.com/sebcrozet/instant/blob/master/CHANGELOG.md) - [Commits](https://github.com/sebcrozet/instant/commits) Updates `linux-raw-sys` from 0.4.13 to 0.4.14 - [Commits](https://github.com/sunfishcode/linux-raw-sys/compare/v0.4.13...v0.4.14) Updates `miniz_oxide` from 0.7.2 to 0.7.3 - [Changelog](https://github.com/Frommi/miniz_oxide/blob/master/CHANGELOG.md) - [Commits](https://github.com/Frommi/miniz_oxide/compare/0.7.2...0.7.3) Updates `proc-macro2` from 1.0.82 to 1.0.83 - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.82...1.0.83) Updates `rustversion` from 1.0.16 to 1.0.17 - [Release notes](https://github.com/dtolnay/rustversion/releases) - [Commits](https://github.com/dtolnay/rustversion/compare/1.0.16...1.0.17) Updates `serde_derive` from 1.0.201 to 1.0.202 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.201...v1.0.202) Updates `smol_str` from 0.2.1 to 0.2.2 - [Commits](https://github.com/rust-analyzer/smol_str/commits/v0.2.2) Updates `thiserror-impl` from 1.0.60 to 1.0.61 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.60...1.0.61) Updates `toml_datetime` from 0.6.5 to 0.6.6 - [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.6.5...toml_datetime-v0.6.6) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: bytemuck dependency-type: direct:production update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: raw-window-handle dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: cc dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: crossbeam-utils dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: either dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: instant dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: linux-raw-sys dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: miniz_oxide dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: proc-macro2 dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: rustversion dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: serde_derive dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: smol_str dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: thiserror-impl dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: toml_datetime dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-26 16:34:50 +00:00
bytemuck = { version = "1.16", optional = true }
document-features.workspace = true
indexmap = "2"
2022-12-15 20:46:28 +00:00
log = "0.4"
once_cell = "1"
2022-12-15 20:46:28 +00:00
# parking_lot 0.12 switches from `winapi` to `windows`; permit either
build(deps): bump the patch-updates group with 19 updates (#5770) Bumps the patch-updates group with 19 updates: | Package | From | To | | --- | --- | --- | | [parking_lot](https://github.com/Amanieu/parking_lot) | `0.12.2` | `0.12.3` | | [serde](https://github.com/serde-rs/serde) | `1.0.202` | `1.0.203` | | [tokio](https://github.com/tokio-rs/tokio) | `1.37.0` | `1.38.0` | | [syn](https://github.com/dtolnay/syn) | `2.0.65` | `2.0.66` | | [backtrace](https://github.com/rust-lang/backtrace-rs) | `0.3.71` | `0.3.72` | | [bytemuck_derive](https://github.com/Lokathor/bytemuck) | `1.6.0` | `1.7.0` | | [crc32fast](https://github.com/srijs/rust-crc32fast) | `1.4.0` | `1.4.2` | | [deno_unsync](https://github.com/denoland/deno_unsync) | `0.3.3` | `0.3.4` | | [gimli](https://github.com/gimli-rs/gimli) | `0.28.1` | `0.29.0` | | [objc-sys](https://github.com/madsmtm/objc2) | `0.3.3` | `0.3.5` | | [object](https://github.com/gimli-rs/object) | `0.32.2` | `0.35.0` | | [plotters](https://github.com/plotters-rs/plotters) | `0.3.5` | `0.3.6` | | [plotters-backend](https://github.com/plotters-rs/plotters) | `0.3.5` | `0.3.6` | | [plotters-svg](https://github.com/plotters-rs/plotters) | `0.3.5` | `0.3.6` | | [polling](https://github.com/smol-rs/polling) | `3.7.0` | `3.7.1` | | [proc-macro2](https://github.com/dtolnay/proc-macro2) | `1.0.83` | `1.0.85` | | [serde_derive](https://github.com/serde-rs/serde) | `1.0.202` | `1.0.203` | | [tokio-macros](https://github.com/tokio-rs/tokio) | `2.2.0` | `2.3.0` | | [wayland-backend](https://github.com/smithay/wayland-rs) | `0.3.3` | `0.3.4` | Updates `parking_lot` from 0.12.2 to 0.12.3 - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/parking_lot/compare/0.12.2...0.12.3) Updates `serde` from 1.0.202 to 1.0.203 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.202...v1.0.203) Updates `tokio` from 1.37.0 to 1.38.0 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.37.0...tokio-1.38.0) Updates `syn` from 2.0.65 to 2.0.66 - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/2.0.65...2.0.66) Updates `backtrace` from 0.3.71 to 0.3.72 - [Release notes](https://github.com/rust-lang/backtrace-rs/releases) - [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.71...0.3.72) Updates `bytemuck_derive` from 1.6.0 to 1.7.0 - [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md) - [Commits](https://github.com/Lokathor/bytemuck/compare/bytemuck_derive-v1.6.0...bytemuck_derive-v1.7.0) Updates `crc32fast` from 1.4.0 to 1.4.2 - [Commits](https://github.com/srijs/rust-crc32fast/compare/v1.4.0...v1.4.2) Updates `deno_unsync` from 0.3.3 to 0.3.4 - [Commits](https://github.com/denoland/deno_unsync/commits) Updates `gimli` from 0.28.1 to 0.29.0 - [Changelog](https://github.com/gimli-rs/gimli/blob/master/CHANGELOG.md) - [Commits](https://github.com/gimli-rs/gimli/compare/0.28.1...0.29.0) Updates `objc-sys` from 0.3.3 to 0.3.5 - [Commits](https://github.com/madsmtm/objc2/compare/objc-sys-0.3.3...objc-sys-0.3.5) Updates `object` from 0.32.2 to 0.35.0 - [Changelog](https://github.com/gimli-rs/object/blob/master/CHANGELOG.md) - [Commits](https://github.com/gimli-rs/object/compare/0.32.2...0.35.0) Updates `plotters` from 0.3.5 to 0.3.6 - [Changelog](https://github.com/plotters-rs/plotters/blob/master/CHANGELOG.md) - [Commits](https://github.com/plotters-rs/plotters/compare/v0.3.5...v0.3.6) Updates `plotters-backend` from 0.3.5 to 0.3.6 - [Changelog](https://github.com/plotters-rs/plotters/blob/master/CHANGELOG.md) - [Commits](https://github.com/plotters-rs/plotters/compare/v0.3.5...v0.3.6) Updates `plotters-svg` from 0.3.5 to 0.3.6 - [Changelog](https://github.com/plotters-rs/plotters/blob/master/CHANGELOG.md) - [Commits](https://github.com/plotters-rs/plotters/compare/v0.3.5...v0.3.6) Updates `polling` from 3.7.0 to 3.7.1 - [Release notes](https://github.com/smol-rs/polling/releases) - [Changelog](https://github.com/smol-rs/polling/blob/master/CHANGELOG.md) - [Commits](https://github.com/smol-rs/polling/compare/v3.7.0...v3.7.1) Updates `proc-macro2` from 1.0.83 to 1.0.85 - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.83...1.0.85) Updates `serde_derive` from 1.0.202 to 1.0.203 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.202...v1.0.203) Updates `tokio-macros` from 2.2.0 to 2.3.0 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-macros-2.2.0...tokio-macros-2.3.0) Updates `wayland-backend` from 0.3.3 to 0.3.4 - [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) --- updated-dependencies: - dependency-name: parking_lot dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: tokio 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: backtrace dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: bytemuck_derive dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: crc32fast 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: gimli dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: objc-sys dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: object dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: plotters dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: plotters-backend dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: plotters-svg dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: polling dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: proc-macro2 dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: serde_derive dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: tokio-macros 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 ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 07:20:29 +00:00
parking_lot = ">=0.11, <0.13"
2022-12-15 20:46:28 +00:00
profiling = { version = "1", default-features = false }
raw-window-handle = { version = "0.6", optional = true }
2022-12-15 20:46:28 +00:00
ron = { version = "0.8", optional = true }
rustc-hash = "1.1"
2022-12-15 20:46:28 +00:00
serde = { version = "1", features = ["serde_derive"], optional = true }
smallvec = "1"
thiserror = "1"
2020-12-21 19:24:52 +00:00
[dependencies.naga]
2023-10-25 20:51:36 +00:00
path = "../naga"
2024-04-28 22:06:35 +00:00
version = "0.20.0"
[dependencies.wgt]
2022-12-15 20:46:28 +00:00
package = "wgpu-types"
path = "../wgpu-types"
2024-04-28 22:06:35 +00:00
version = "0.20.0"
2021-06-04 05:19:36 +00:00
[dependencies.hal]
2022-12-15 20:46:28 +00:00
package = "wgpu-hal"
path = "../wgpu-hal"
2024-04-28 22:06:35 +00:00
version = "0.20.0"
default-features = false
2021-06-04 05:19:36 +00:00
[build-dependencies]
cfg_aliases.workspace = true