mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-19 00:27:49 +00:00
* Dependencies: take craft-libs main at 3af2280ee3 Every craft-libs crate in the workspace now comes from one commit, 3af2280ee3434a2c860012df2f440652621c2c81. They were on five revisions: e11f9d9a, d13ac58a, 976eb51c, e9829954 (craft-update) and fd5e2fef (craft-web-api and craft-web-host). Cargo.lock now holds one craft-zip instead of two. No FigCraft code changes. The new craft-font-store adds cap-primitives and its dependencies to Cargo.lock. * Dependencies: drop pin comments the craft-libs move made untrue craft-update now uses the same craft-libs rev as the other crates, and craft-window comes from craft-libs main. Remove the comment that says craft-update is pinned separately and the comment that says craft-window is pinned to an unmerged branch. * Tests: look up craft-fig with cargo metadata filtered to the host The i18n key test finds the craft-fig sources with `cargo metadata --offline`. Since craft-font-store depends on cap-primitives, the graph holds winx, which only Windows uses. Without a platform filter, cargo metadata needs every platform's sources and failed on Linux CI with "failed to download `winx v0.36.4`". The query now passes `--filter-platform` with the host triple from `rustc -vV`. * Dependencies: take craft-libs main at 453b0da782 Every craft-libs crate in the workspace moves from 3af2280ee3 to craft-libs main at 453b0da782, and craft-sketch moves from ff142b3ad5 to the same commit. Cargo.lock now holds one craft-figma-rest and one craft-zip instead of two of each; no other package changes. * Dependencies: drop the design-file pin comment that no longer holds craft-penpot, listed above the design-file crates, uses the same craft-zip as craft-fig and craft-figcraft-format, and every craft-libs crate is now on one rev, so the comment's reason for a separate rev is removed.
38 lines
1.8 KiB
TOML
38 lines
1.8 KiB
TOML
[package]
|
|
name = "figcraft-web"
|
|
description = "FigCraft 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 = "figcraft-web"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
figcraft-engine = { workspace = true }
|
|
figcraft-format = { workspace = true }
|
|
figcraft-ui-egui = { workspace = true }
|
|
figcraft-collab-net = { workspace = true }
|
|
figcraft-text = { workspace = true }
|
|
# The host messages (storytold/craft-libs): one contract and one bridge for the web builds.
|
|
# The page command API (storytold/craft-libs#413): the request plumbing behind window.figcraft.
|
|
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "453b0da782ccef39be9a6dac8d27c80b553ef1cc", version = "0.1.0" }
|
|
craft-web-host = { git = "https://github.com/storytold/craft-libs", rev = "453b0da782ccef39be9a6dac8d27c80b553ef1cc", version = "0.1.0" }
|
|
base64 = { workspace = true }
|
|
egui = { workspace = true }
|
|
log = { workspace = true }
|
|
serde_json = { 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"] }
|
|
wasm-bindgen = "0.2"
|
|
js-sys = "0.3"
|
|
wasm-bindgen-futures = "0.4"
|
|
web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlCanvasElement", "HtmlElement", "HtmlAnchorElement", "Node", "Blob", "BlobPropertyBag", "ClipboardEvent", "DataTransfer", "File", "FileList", "HtmlInputElement", "EventTarget", "Url", "Location", "MediaQueryList", "Navigator", "Gamepad", "GamepadButton", "GamepadMappingType", "Storage", "Event", "MessageEvent", "UrlSearchParams", "CustomEvent", "CustomEventInit"] }
|