mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-25 08:50:46 +01:00
27 lines
890 B
TOML
27 lines
890 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"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
texturecraft-engine = { workspace = true }
|
|
texturecraft-ui-egui = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
# `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"] }
|