Files
vectorcraft/crates/affinity/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

31 lines
1.0 KiB
TOML

[package]
name = "vectorcraft-affinity"
description = "craft-affinity under its old name, for the corpus tests and fuzz targets"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
[lints]
workspace = true
[features]
# Synthetic-container builders for tests and fuzz seeds; not an Affinity exporter.
synth = ["craft-affinity/synth"]
[dependencies]
craft-affinity = { workspace = true }
[dev-dependencies]
proptest = { workspace = true }
# The tests build containers and decode previews.
crc32fast = { workspace = true }
craft-image-codecs = { workspace = true }
# tests/it's `import_limits`, `outline_limits` and `text` modules need `synth`, also when this crate
# is tested without vectorcraft-engine (`cargo xtask ci shard`).
vectorcraft-affinity = { path = ".", features = ["synth"] }
# The files of other crates that this crate's tests compile or read, for CI's test selection.
[package.metadata.craft]
reads = ["xtask/affinity-corpus.sha256", "xtask/src/sha256.rs"]