Files
craft-libs/crates/pages/Cargo.toml
T
Dylan M. Taylor fd94fad305 fw-pages-review: merge origin/next into the port's pages, review and text editor
Pages: the port's page view keeps its pass (pre-draw tool callback, pager, GoTo, its picture stores) and takes
upstream's editor and inactive edits, snap and tool regions, rulers strips, picture reach with resident counts,
the zoom anchor and non-easing reflow, the thumb tip and Go To placement; PlacedPage::new takes upstream's
four arguments with showing() for the picture; page spacing is the theme insets for Creative and upstream's for
Productivity. Review: comment rows keep badges, lead and submit key beside upstream's balloon actions, body rows
and push buttons; a new lead keeps its own edit draft. Text: editor keeps holds_drafts with upstream's focus
scope. Module lists, stories and trials are the union.
2026-11-22 23:05:47 -05:00

46 lines
1.7 KiB
TOML

[package]
name = "craft-pages"
description = "Pages for the Craft document apps: page geometry, page setup, page ranges and numbering; with `ui`, the page view, thumbnails, page setup dialog, rulers' margin handles, header and footer zones and document tables."
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
repository.workspace = true
autotests = false
[lib]
# The lib's test target is the crate's one test executable: its trials and, with `screen-testing`, the
# screen tests in tests/it.
harness = false
[lints]
workspace = true
[features]
suite = ["screen-testing", "craft-ui/suite"]
default = []
# The page widgets (`craft_pages::ui`), on craft-ui.
ui = ["dep:craft-behavior", "dep:craft-keymap", "dep:craft-ui", "dep:craft-theme", "dep:egui", "dep:serde_json", "craft-text/ui"]
# The stories and the integration tests (`tests/it`).
screen-testing = ["ui", "craft-ui/testing"]
[dependencies]
# `numbering` formats page numbers with craft-text's list number styles.
craft-text = { path = "../text", default-features = false }
kurbo = { workspace = true }
serde = { workspace = true }
# `ui::range` keeps a page-range row's value as a dialog's JSON field.
serde_json = { workspace = true, optional = true }
craft-behavior = { workspace = true, optional = true }
# The arrows the page view reads come with the modifiers held.
craft-keymap = { workspace = true, optional = true }
craft-ui = { workspace = true, optional = true }
craft-theme = { workspace = true, optional = true }
egui = { workspace = true, optional = true }
[dev-dependencies]
craft-ui = { workspace = true, features = ["suite"] }
egui = { workspace = true }
craft-i18n = { workspace = true }
serde_json = { workspace = true }