* use channels for comms this also refactors the app setup and messaging modules * remove double logging * load single model gltf files * add gltf loader * add sponza model * camera with rotors (#11) * orbit with rotors * add dolly behaviour to emulate zoom
63 lines
1.1 KiB
TOML
63 lines
1.1 KiB
TOML
[package]
|
|
name = "base"
|
|
description = "wgpu + webpack base"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[features]
|
|
default = []
|
|
atomics = []
|
|
bulk-memory = []
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
lto = true
|
|
|
|
[dependencies]
|
|
wasm-bindgen = { version = "0.2.100", features = ["enable-interning"] }
|
|
wasm-bindgen-futures = "0.4.50"
|
|
console_error_panic_hook = "0.1.7"
|
|
console_log = "1.0.0"
|
|
log = "0.4.27"
|
|
wasm-logger = "0.2.0"
|
|
web-sys = { version = "0.3.77", features = [
|
|
"Window",
|
|
"Document",
|
|
"Element",
|
|
"HtmlCanvasElement",
|
|
"OffscreenCanvas",
|
|
"MouseEvent",
|
|
"Worker",
|
|
"DedicatedWorkerGlobalScope",
|
|
"Event",
|
|
"MessageEvent",
|
|
"Blob",
|
|
"BlobPropertyBag",
|
|
"Url",
|
|
"Request",
|
|
"RequestInit",
|
|
"RequestMode",
|
|
"Response",
|
|
"Headers"
|
|
]}
|
|
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"
|
|
reqwest = { version = "0.12.23", features = ["json"] }
|
|
thiserror = "2.0.15"
|
|
ultraviolet = "0.10.0"
|
|
|
|
[dependencies.gltf]
|
|
version = "1.4"
|
|
features = ["extras", "names"]
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = false
|