[package]
edition = "2024"
rust-version = "1.85"
name = "oxicuda-webgpu"
version = "0.5.5"
authors = ["COOLJAPAN OU <contact@cooljapan.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OxiCUDA WebGPU - Cross-platform GPU compute via wgpu and WGSL"
readme = "README.md"
keywords = [
"webgpu",
"wgpu",
"gpu",
"compute",
"wgsl",
]
categories = [
"hardware-support",
"science",
"mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxicuda"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
gpu-tests = []
wasm = [
"dep:wasm-bindgen",
"dep:js-sys",
]
[lib]
name = "oxicuda_webgpu"
path = "src/lib.rs"
[[test]]
name = "conformance_gemm"
path = "tests/conformance_gemm.rs"
[[test]]
name = "conformance_ops"
path = "tests/conformance_ops.rs"
[[test]]
name = "edge_cases"
path = "tests/edge_cases.rs"
[[test]]
name = "gpu_presence"
path = "tests/gpu_presence.rs"
[[bench]]
name = "attention_bench"
path = "benches/attention_bench.rs"
harness = false
[[bench]]
name = "conv2d_bench"
path = "benches/conv2d_bench.rs"
harness = false
[[bench]]
name = "gemm_bench"
path = "benches/gemm_bench.rs"
harness = false
[[bench]]
name = "reduce_bench"
path = "benches/reduce_bench.rs"
harness = false
[dependencies.js-sys]
version = "0.3.103"
optional = true
[dependencies.oxicuda-backend]
version = "0.5.5"
[dependencies.pollster]
version = "0.4.0"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
[dependencies.wasm-bindgen]
version = "0.2.126"
optional = true
[dependencies.wgpu]
version = "29.0.3"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.half]
version = "2.7"
features = [
"num-traits",
"bytemuck",
]
[dev-dependencies.naga]
version = "29.0.3"
[lints.clippy]
excessive_precision = "allow"
float_cmp = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_transmute_annotations = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
similar_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
dead_code = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_imports = "warn"
unused_variables = "warn"