mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-16 20:03:07 +00:00
5f890e584e
The browser build threw unsaved changes away on New project, Open, Close, Open sample project or a dropped file, and when the tab closed. They now wait on the desktop's Save / Don't save / Cancel dialog (Save downloads the project), and closing or reloading the tab with unsaved changes makes the browser ask first.
28 lines
905 B
TOML
28 lines
905 B
TOML
[package]
|
|
name = "texturecraft-web"
|
|
description = "TextureCraft 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 = "texturecraft-web"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
texturecraft-engine = { workspace = true }
|
|
texturecraft-ui-egui = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
# `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback.
|
|
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit", "persistence"] }
|
|
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", "BeforeUnloadEvent", "EventTarget", "AddEventListenerOptions"] }
|