[package]
edition = "2024"
name = "cubecl-wgpu"
version = "0.10.0"
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WGPU runtime for the CubeCL"
readme = "README.md"
keywords = [
"gpu",
"wgpu",
"webgpu",
"gpgpu",
]
categories = ["science"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/cubecl/tree/main/crates/cubecl-wgpu"
resolver = "2"
[features]
default = [
"cubecl-runtime/default",
"cubecl-common/default",
"cubecl-core/default",
]
exclusive-memory-only = ["cubecl-runtime/exclusive-memory-only"]
msl = ["cubecl-cpp/metal"]
profile-tracy = ["tracy-client"]
spirv = [
"cubecl-spirv",
"ash",
"tracel-ash",
"cubecl-common/compilation-cache",
"cubecl-common/hash",
]
spirv-dump = ["std"]
std = [
"cubecl-runtime/std",
"cubecl-common/std",
"cubecl-core/std",
"sanitize-filename",
]
tracing = [
"dep:tracing",
"cubecl-runtime/tracing",
"cubecl-common/tracing",
"cubecl-core/tracing",
]
vulkan-validate = []
[lib]
name = "cubecl_wgpu"
path = "src/lib.rs"
[dependencies.ash]
version = "0.38"
optional = true
[dependencies.async-channel]
version = "2.3"
[dependencies.bytemuck]
version = "1.16.1"
[dependencies.cfg-if]
version = "1.0.0"
[dependencies.cubecl-common]
version = "0.10.0"
default-features = false
[dependencies.cubecl-core]
version = "0.10.0"
default-features = false
[dependencies.cubecl-cpp]
version = "0.10.0"
features = ["metal"]
optional = true
[dependencies.cubecl-ir]
version = "0.10.0"
default-features = false
[dependencies.cubecl-runtime]
version = "0.10.0"
features = ["channel-mutex"]
default-features = false
[dependencies.cubecl-spirv]
version = "0.10.0"
optional = true
[dependencies.derive-new]
version = "0.7.0"
default-features = false
[dependencies.derive_more]
version = "2"
default-features = false
[dependencies.half]
version = "2.5"
features = [
"alloc",
"num-traits",
"serde",
]
default-features = false
[dependencies.hashbrown]
version = "0.16"
[dependencies.log]
version = "^0.4.22"
default-features = false
[dependencies.sanitize-filename]
version = "0.6"
optional = true
[dependencies.tracel-ash]
version = "0.39"
optional = true
[dependencies.tracing]
version = "^0.1.43"
features = ["attributes"]
optional = true
default-features = false
[dependencies.tracy-client]
version = "0.18.0"
optional = true
[dev-dependencies.cubecl-core]
version = "0.10.0"
features = ["export_tests"]
[dev-dependencies.cubecl-std]
version = "0.10.0"
features = ["export_tests"]
[dev-dependencies.half]
version = "2.5"
features = [
"alloc",
"num-traits",
"serde",
]
default-features = false
[dev-dependencies.paste]
version = "1"
[dev-dependencies.pretty_assertions]
version = "1.4"
[dev-dependencies.test-log]
version = "^0.2"
features = ["trace"]
default-features = false
[build-dependencies.cfg_aliases]
version = "0.2.1"
[target.'cfg(not(target_os = "macos"))'.dependencies.wgpu]
version = "29"
features = ["fragile-send-sync-non-atomic-wasm"]
[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures]
version = "0.4.45"
[target.'cfg(target_os = "macos")'.dependencies.wgpu]
version = "29"
features = [
"vulkan-portability",
"fragile-send-sync-non-atomic-wasm",
]
[lints.clippy]
doc_markdown = "warn"
[lints.rust]
warnings = "warn"
[lints.rustdoc]
broken_intra_doc_links = "warn"
invalid_html_tags = "warn"