Files
vectorcraft/crates/plugins/Cargo.toml
T
dotCooCoo dcdbd3cc1b CI: declare the files each crate reads in other crates, for test selection
Test selection in the shared gate (`select-tests`) runs the tests of the
crates a change reaches. A crate that compiles or reads another crate's
files lists them under `[package.metadata.craft]` in its Cargo.toml:

- vectorcraft-plugins sets `reads-every-member = true`, because
  `tests/grant_sites.rs` reads the sources of every crate.
- vectorcraft-cli, vectorcraft-affinity, vectorcraft-engine,
  vectorcraft-mcp, vectorcraft-ui-egui and xtask list the files they
  compile through `#[path]` or read with `include_str!`/`include_bytes!`
  or from `CARGO_MANIFEST_DIR`.

Cargo ignores this table. Only the gate's selection step reads it, and that
step fails when a read is missing from it.
2026-11-30 02:38:02 -08:00

51 lines
1.9 KiB
TOML

[package]
name = "vectorcraft-plugins"
description = "Sandboxed plug-ins for VectorCraft: a resource-limited wasmi host for object filters and live effects, and JavaScript object filters"
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 }
# The interpreter of JavaScript plug-ins (`js.rs`).
vectorcraft-js = { workspace = true }
wasmi = { workspace = true }
wasmparser = { 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 }
# The `steady` gate vectorcraft-engine's tests turn on, also when this crate is tested without
# vectorcraft-engine (`cargo xtask ci shard`).
vectorcraft-plugins = { path = ".", features = ["test-steady"] }
[features]
# `vectorcraft_plugins::steady` for other crates' tests (dev-dependencies only).
test-steady = []
# For CI's test selection: `tests/grant_sites.rs` reads the sources of every crate.
[package.metadata.craft]
reads-every-member = true