wgpu + wasm + worker (#8)

initial setup
This commit is contained in:
Heaust Azure
2025-08-04 22:23:37 +05:30
committed by GitHub
parent 9d2bf4055d
commit ba2d1c064b
33 changed files with 4207 additions and 963 deletions
+41
View File
@@ -0,0 +1,41 @@
[package]
name = "base"
description = "wgpu + webpack base"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[profile.release]
opt-level = "z"
lto = true
[dependencies]
wasm-bindgen = "0.2.100"
wasm-bindgen-futures = "0.4.50"
console_error_panic_hook = "0.1.7"
console_log = "1.0.0"
log = "0.4.27"
web-sys = { version = "0.3.77", features = [
"Window",
"Document",
"Element",
"HtmlCanvasElement",
"OffscreenCanvas",
"MouseEvent",
"Worker",
"DedicatedWorkerGlobalScope",
"Event",
"MessageEvent",
"Blob",
"BlobPropertyBag",
"Url",
]}
js-sys = "0.3.77"
bytemuck = { version = "1.23.1", features = [
"derive"
]}
cgmath = "0.18"
raw-window-handle = "0.6.2"
wgpu = "26.0.1"