mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-25 00:41:00 +01:00
Match wait_for_3d_frame to Arc<Vec<u8>> pixel storage. Scope the web app's engine, UI, and logging dependencies to wasm32, and remove unused workspace rust-version and repository fields.
28 lines
1.0 KiB
TOML
28 lines
1.0 KiB
TOML
[package]
|
|
name = "materialcraft-web"
|
|
description = "MaterialCraft in the browser (eframe web runner, WebGPU with WebGL2 fallback)"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bin]]
|
|
name = "materialcraft-web"
|
|
path = "src/main.rs"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
materialcraft-engine = { workspace = true }
|
|
log = { workspace = true }
|
|
materialcraft-ui-egui = { workspace = true }
|
|
# `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback
|
|
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit", "persistence"] }
|
|
# The SBS library's `resources/`, which the browser build downloads at startup
|
|
materialcraft-formats = { workspace = true }
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlCanvasElement", "Location", "KeyboardEvent", "EventTarget", "AddEventListenerOptions", "Response", "RequestInit", "AbortController", "AbortSignal"] }
|