mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 18:54:55 +00:00
The web build had no clock for plug-in runs, so its first view deferred every plug-in live effect until Effect > Refresh Deferred Effects, and a run's wall-clock limit was not enforced there. The deferrals clock and the run deadline now read `web_time::Instant`, which is the system's monotonic clock on the desktop and the page's `performance.now()` in the web build. The web's first view now shares the same 2,000 ms budget, and its runs stop at the 5 s, 60 s and 300 s limits as on the desktop. Docs: docs/plugins.md, docs/mcp.md, docs/target-app-parity.md.
32 lines
1.1 KiB
TOML
32 lines
1.1 KiB
TOML
[package]
|
|
name = "vectorcraft-plugins"
|
|
description = "Sandboxed WebAssembly plug-ins for VectorCraft: a resource-limited wasmi host for object filters and live effects"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
log = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
# The pixels of a small image a filter asks to read, as RGBA in base64.
|
|
image = { workspace = true }
|
|
craft-vectorcraft-format = { workspace = true }
|
|
# The SHA-256 of a module, which the install prompt shows and a grant records.
|
|
sha2 = { version = "0.10", default-features = false }
|
|
thiserror = { workspace = true }
|
|
wasmi = { workspace = true }
|
|
# The monotonic clock of run deadlines and the first-view budget: `std::time::Instant` on the
|
|
# desktop, the page's `performance.now()` in the web build. It is MIT OR Apache-2.0 and already in
|
|
# the build through eframe.
|
|
web-time = "1"
|
|
|
|
[dev-dependencies]
|
|
wat = { workspace = true }
|