mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 23:50:13 +00:00
A folder load checked each .wasm path and then opened it with a blocking open. When a named pipe replaced the file between the two, the open held the load until something wrote to the pipe, and with it startup or a prefs.set of the folder. On Unix the file is now opened without waiting and without making a terminal the controlling terminal, and the opened file is checked again: anything that is not a regular file, or is over the module limit, is refused and listed in the folder report. A folder load still reads at most 1,000 .wasm files, the first by file name, and now holds only those paths while it lists the folder. The files past the first 1,000 were dropped and not reported; plugin.reload and plugin.list now return their count as leftOut. An error while the folder is listed fails the load, as an error opening the folder does, instead of dropping the entries after it.
37 lines
1.3 KiB
TOML
37 lines
1.3 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.
|
|
craft-image-codecs = { 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"
|
|
|
|
# Opens a `.wasm` in the plug-ins folder without waiting when it is a named pipe (`registry.rs`).
|
|
# Already in Cargo.lock, so this adds no new crate.
|
|
[target.'cfg(unix)'.dependencies]
|
|
rustix = { workspace = true, features = ["std", "fs"] }
|
|
|
|
[dev-dependencies]
|
|
wat = { workspace = true }
|