mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 21:27:00 +00:00
Every storytold/craft-libs git dependency, the hayro, krilla and linesweeper patches and the web app's craft-web-api now use one revision, 64b181977a, so Cargo.lock holds one copy of each craft-libs crate. craft-ui's docking Monitor has a new work_area field; the monitors VectorCraft lists set it to None, as winit reports no work area.
35 lines
1.7 KiB
TOML
35 lines
1.7 KiB
TOML
[package]
|
|
name = "vectorcraft-web"
|
|
description = "VectorCraft 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 = "vectorcraft-web"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
vectorcraft-engine = { workspace = true, features = ["bundled-fonts", "heif"] }
|
|
vectorcraft-ui-egui = { workspace = true }
|
|
# The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft.
|
|
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "64b181977a0488e4d1e167bc5cc8cfededc2ed4b", version = "0.1.0" }
|
|
vectorcraft-format = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
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"] }
|
|
rfd = { workspace = true, features = ["file-handle-inner"] }
|
|
wasm-bindgen = "0.2"
|
|
serde_json = { workspace = true }
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlElement", "HtmlCanvasElement", "HtmlInputElement", "KeyboardEvent", "HtmlIFrameElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "ClipboardEvent", "DataTransfer", "File", "FileList", "Url", "Location", "CssStyleDeclaration", "Event", "EventTarget", "MouseEvent", "PointerEvent", "TouchEvent", "AddEventListenerOptions", "DomRect", "DragEvent", "Storage", "Navigator", "RequestInit", "Response", "AbortController", "AbortSignal"] }
|