Files
rustytorch/crates/core/rtx-backend-webgpu/Cargo.toml
T
2026-03-04 00:08:42 +00:00

40 lines
1.0 KiB
TOML

[package]
name = "rtx-backend-webgpu"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
description = "WebGPU backend for RustyTorch++ browser deployment"
keywords = ["tensor", "machine-learning", "webgpu", "wasm"]
categories = ["science", "mathematics", "wasm"]
[dependencies]
rtx-backend = { workspace = true }
thiserror = { workspace = true }
parking_lot = { workspace = true }
rand = { workspace = true }
rand_distr = { workspace = true }
# WebGPU support via wgpu
wgpu = "22.0"
pollster = "0.4" # For blocking async in native context
bytemuck = { version = "1.14", features = ["derive"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = ["console"] }
[dev-dependencies]
tempfile = { workspace = true }
[features]
default = ["native"]
native = [] # Native platform support
wasm = [] # WebAssembly browser support
[lints]
workspace = true