Files
craft-libs/crates/story-render/Cargo.toml
T
aiongg 4304f51ff0 cl doctor: rules for the split UI test kit
Since #2363, craft-ui-contract's testing no longer carries snapshot and the
framework crates have a suite feature. Every cl command still resolves one
framework feature set (feature-root brings the gallery's craft-ui suite), so the
three doctor reports were out of date, not second builds:

- drop the pin on craft-ui-contract's testing including snapshot: each framework
  crate's suite forwards to the runtime's suite, which cl picks first
- the gallery's must-be-optional rule covers domain crates, not the framework
- the story renderer's lines are compared with the features the gallery's lines
  turn on, implied features included (suite implies testing)

CL_DRY_RUN with cl render no longer runs the renderer after printing the command.
2026-11-23 10:54:17 +00:00

52 lines
1.8 KiB
TOML

[package]
name = "story-render"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
publish = false
description = "Renders a component's stories to PNG files, offscreen, linking only the crates its features name"
autotests = false
[[bin]]
name = "story-render"
path = "src/main.rs"
test = false
[lints]
workspace = true
[features]
default = []
# One feature per domain crate whose stories can be rendered: each links that crate (through the viewer's feature of
# the same name) and nothing else above the framework. `apps` links them all, like the gallery.
apps = ["craft-ui-gallery/apps"]
automation = ["craft-ui-gallery/automation"]
browse = ["craft-ui-gallery/browse"]
color-ui = ["craft-ui-gallery/color-ui"]
draw = ["craft-ui-gallery/draw"]
imaging = ["craft-ui-gallery/imaging"]
layers = ["craft-ui-gallery/layers"]
menu = ["craft-ui-gallery/menu"]
pages = ["craft-ui-gallery/pages"]
print = ["craft-ui-gallery/print"]
review = ["craft-ui-gallery/review"]
table = ["craft-ui-gallery/table"]
text = ["craft-ui-gallery/text"]
theme-editor = ["craft-ui-gallery/theme-editor"]
theme-store = ["craft-ui-gallery/theme-store"]
timeline = ["craft-ui-gallery/timeline"]
dialogs = ["craft-ui-gallery/dialogs"]
font-manager = ["craft-ui-gallery/font-manager"]
update = ["craft-ui-gallery/update"]
[dependencies]
# The same framework features as the gallery (the gallery's `suite` brings the snapshot renderer), so the framework
# builds once for the gallery, the tests and this bin.
craft-behavior = { workspace = true }
craft-ui = { workspace = true, features = ["app", "testing"] }
craft-ui-gallery = { path = "../ui-gallery", default-features = false }
egui = { workspace = true }
image = { version = "0.25", default-features = false, features = ["png"] }