237 lines
4.9 KiB
TOML
237 lines
4.9 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
name = "wgpu"
|
|
version = "24.0.5"
|
|
authors = ["gfx-rs developers"]
|
|
build = "build.rs"
|
|
exclude = ["Cargo.lock"]
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Cross-platform, safe, pure-rust graphics API"
|
|
homepage = "https://wgpu.rs/"
|
|
readme = "README.md"
|
|
keywords = ["graphics"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/gfx-rs/wgpu"
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["cfg_aliases"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
targets = [
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"wasm32-unknown-unknown",
|
|
]
|
|
|
|
[lib]
|
|
name = "wgpu"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies.arrayvec]
|
|
version = "0.7"
|
|
|
|
[dependencies.bitflags]
|
|
version = "2.7"
|
|
|
|
[dependencies.document-features]
|
|
version = "0.2.10"
|
|
|
|
[dependencies.log]
|
|
version = "0.4"
|
|
|
|
[dependencies.naga]
|
|
version = "24.0.0"
|
|
optional = true
|
|
|
|
[dependencies.parking_lot]
|
|
version = "0.12.1"
|
|
|
|
[dependencies.profiling]
|
|
version = "1"
|
|
default-features = false
|
|
|
|
[dependencies.raw-window-handle]
|
|
version = "0.6"
|
|
features = ["std"]
|
|
|
|
[dependencies.serde]
|
|
version = "1"
|
|
features = [
|
|
"default",
|
|
"derive",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.smallvec]
|
|
version = "1"
|
|
|
|
[dependencies.static_assertions]
|
|
version = "1.1.0"
|
|
|
|
[dependencies.wgc]
|
|
version = "24.0.0"
|
|
features = ["raw-window-handle"]
|
|
optional = true
|
|
package = "wgpu-core"
|
|
|
|
[dependencies.wgt]
|
|
version = "24.0.0"
|
|
package = "wgpu-types"
|
|
|
|
[dev-dependencies.naga]
|
|
version = "24.0.0"
|
|
features = ["wgsl-in"]
|
|
|
|
[build-dependencies.cfg_aliases]
|
|
version = "0.2.1"
|
|
|
|
[features]
|
|
angle = ["wgc?/gles"]
|
|
counters = ["wgc/counters"]
|
|
default = [
|
|
"wgsl",
|
|
"dx12",
|
|
"metal",
|
|
"webgpu",
|
|
]
|
|
dx12 = ["wgc?/dx12"]
|
|
fragile-send-sync-non-atomic-wasm = [
|
|
"hal/fragile-send-sync-non-atomic-wasm",
|
|
"wgc/fragile-send-sync-non-atomic-wasm",
|
|
"wgt/fragile-send-sync-non-atomic-wasm",
|
|
]
|
|
glsl = [
|
|
"naga/glsl-in",
|
|
"wgc/glsl",
|
|
]
|
|
metal = ["wgc?/metal"]
|
|
naga-ir = ["dep:naga"]
|
|
replay = [
|
|
"serde",
|
|
"wgc/replay",
|
|
]
|
|
serde = [
|
|
"dep:serde",
|
|
"wgc/serde",
|
|
]
|
|
spirv = [
|
|
"naga/spv-in",
|
|
"wgc/spirv",
|
|
]
|
|
static-dxc = ["hal/static-dxc"]
|
|
strict_asserts = [
|
|
"wgc?/strict_asserts",
|
|
"wgt/strict_asserts",
|
|
]
|
|
vulkan-portability = ["wgc?/vulkan"]
|
|
webgl = [
|
|
"dep:hal",
|
|
"wgc/gles",
|
|
]
|
|
webgpu = ["naga?/wgsl-out"]
|
|
wgsl = ["wgc?/wgsl"]
|
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), unix, not(target_vendor = "apple")))'.dependencies.hal]
|
|
version = "24.0.0"
|
|
features = ["renderdoc"]
|
|
package = "wgpu-hal"
|
|
|
|
[target.'cfg(all(unix, not(target_vendor = "apple")))'.dependencies.wgc]
|
|
version = "24.0.0"
|
|
features = ["gles"]
|
|
package = "wgpu-core"
|
|
|
|
[target.'cfg(any(not(target_arch = "wasm32"), target_os = "emscripten"))'.dependencies.hal]
|
|
version = "24.0.0"
|
|
package = "wgpu-hal"
|
|
|
|
[target.'cfg(any(not(target_arch = "wasm32"), target_os = "emscripten"))'.dependencies.wgc]
|
|
version = "24.0.0"
|
|
features = ["raw-window-handle"]
|
|
package = "wgpu-core"
|
|
|
|
[target.'cfg(any(windows, all(unix, not(target_os = "emscripten"), not(target_vendor = "apple"))))'.dependencies.wgc]
|
|
version = "24.0.0"
|
|
features = ["vulkan"]
|
|
package = "wgpu-core"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc]
|
|
version = "24.0.0"
|
|
features = ["indirect-validation"]
|
|
package = "wgpu-core"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.hal]
|
|
version = "24.0.0"
|
|
optional = true
|
|
package = "wgpu-hal"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
|
|
version = "0.3.70"
|
|
features = ["default"]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.parking_lot]
|
|
version = "0.12.1"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
|
|
version = "0.2.97"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
|
|
version = "0.4.45"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
|
version = "0.3.74"
|
|
features = [
|
|
"default",
|
|
"Document",
|
|
"Navigator",
|
|
"Node",
|
|
"NodeList",
|
|
"HtmlCanvasElement",
|
|
"OffscreenCanvas",
|
|
"ImageBitmap",
|
|
"ImageBitmapRenderingContext",
|
|
"Window",
|
|
"WorkerGlobalScope",
|
|
"WorkerNavigator",
|
|
"Event",
|
|
"EventTarget",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.wgc]
|
|
version = "24.0.0"
|
|
package = "wgpu-core"
|
|
|
|
[target."cfg(windows)".dependencies.hal]
|
|
version = "24.0.0"
|
|
features = ["renderdoc"]
|
|
package = "wgpu-hal"
|
|
|
|
[target."cfg(windows)".dependencies.wgc]
|
|
version = "24.0.0"
|
|
features = ["gles"]
|
|
package = "wgpu-core"
|