[go: up one dir, main page]

wgpu 27.0.1

Cross-platform, safe, pure-rust graphics API
Documentation
[build-dependencies.cfg_aliases]
version = "0.2.1"

[dependencies.arrayvec]
default-features = false
version = "0.7.1"

[dependencies.bitflags]
version = "2.9"

[dependencies.cfg-if]
version = "1"

[dependencies.document-features]
version = "0.2.10"

[dependencies.hashbrown]
default-features = false
features = ["default-hasher", "inline-more"]
version = "0.16"

[dependencies.log]
version = "0.4.21"

[dependencies.naga]
features = ["termcolor"]
optional = true
version = "27.0.0"

[dependencies.parking_lot]
optional = true
version = "0.12.3"

[dependencies.profiling]
default-features = false
version = "1.0.1"

[dependencies.raw-window-handle]
default-features = false
features = ["alloc"]
version = "0.6.2"

[dependencies.static_assertions]
version = "1.1"

[dependencies.wgpu-core]
optional = true
version = "27.0.0"

[dependencies.wgpu-types]
default-features = false
version = "27.0.0"

[dev-dependencies.bytemuck]
features = ["extern_crate_alloc", "min_const_generics"]
version = "1.22"

[features]
angle = ["wgpu-core?/angle"]
counters = ["wgpu-core?/counters"]
custom = []
default = ["std", "parking_lot", "dx12", "metal", "gles", "vulkan", "wgsl", "webgpu"]
dx12 = ["wgpu-core?/dx12"]
fragile-send-sync-non-atomic-wasm = ["wgpu-core?/fragile-send-sync-non-atomic-wasm", "wgpu-types/fragile-send-sync-non-atomic-wasm"]
gles = ["wgpu-core?/gles"]
glsl = ["naga/glsl-in", "wgpu-core?/glsl"]
metal = ["wgpu-core?/metal"]
naga-ir = ["dep:naga"]
noop = ["wgpu-core/noop", "dep:wgpu-hal", "dep:smallvec"]
parking_lot = ["dep:parking_lot"]
serde = ["wgpu-core?/serde", "wgpu-types/serde"]
spirv = ["naga/spv-in", "wgpu-core?/spirv"]
static-dxc = ["wgpu-core?/static-dxc"]
std = ["raw-window-handle/std", "wgpu-types/std", "wgpu-core?/std"]
strict_asserts = ["wgpu-core?/strict_asserts", "wgpu-types/strict_asserts"]
vulkan = ["wgpu-core?/vulkan"]
vulkan-portability = ["wgpu-core?/vulkan-portability"]
web = ["dep:wasm-bindgen", "dep:js-sys", "dep:web-sys", "wgpu-types/web"]
webgl = ["web", "wgpu-core/webgl", "dep:wgpu-hal", "dep:smallvec"]
webgpu = ["web", "naga?/wgsl-out", "dep:wasm-bindgen-futures", "web-sys/Document", "web-sys/Event", "web-sys/Navigator", "web-sys/NodeList", "web-sys/Window", "web-sys/WorkerGlobalScope", "web-sys/WorkerNavigator"]
wgsl = ["wgpu-core?/wgsl"]

[lib]
name = "wgpu"
path = "src/lib.rs"

[package]
authors = ["gfx-rs developers"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
description = "Cross-platform, safe, pure-rust graphics API"
edition = "2021"
exclude = ["Cargo.lock"]
homepage = "https://wgpu.rs/"
keywords = ["graphics"]
license = "MIT OR Apache-2.0"
name = "wgpu"
readme = "README.md"
repository = "https://github.com/gfx-rs/wgpu"
rust-version = "1.88"
version = "27.0.1"

[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"]

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.js-sys]
default-features = false
features = ["default"]
optional = true
version = "0.3.77"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.smallvec]
optional = true
version = "1.14"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.wasm-bindgen]
optional = true
version = "0.2.100"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.wasm-bindgen-futures]
optional = true
version = "0.4.43"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.web-sys]
default-features = false
features = ["HtmlCanvasElement", "OffscreenCanvas"]
optional = true
version = "0.3.77"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.wgpu-core]
features = ["raw-window-handle"]
optional = true
version = "27.0.0"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.wgpu-hal]
optional = true
version = "27.0.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.smallvec]
version = "1.14"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgpu-core]
features = ["raw-window-handle", "renderdoc", "wgsl", "portable-atomic"]
version = "27.0.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgpu-hal]
version = "27.0.0"

[target.'cfg(not(target_has_atomic = "64"))'.dependencies.portable-atomic]
version = "1.8"

[target.'cfg(target_os = "emscripten")'.dependencies.smallvec]
version = "1.14"

[target.'cfg(target_os = "emscripten")'.dependencies.wgpu-core]
features = ["raw-window-handle"]
version = "27.0.0"

[target.'cfg(target_os = "emscripten")'.dependencies.wgpu-hal]
version = "27.0.0"