mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-29 17:54:59 +01:00
124 lines
6.5 KiB
TOML
124 lines
6.5 KiB
TOML
[package]
|
||
name = "pdfcraft-ui-egui"
|
||
description = "The egui shell of PdfCraft"
|
||
version.workspace = true
|
||
edition.workspace = true
|
||
license.workspace = true
|
||
rust-version = "1.95"
|
||
|
||
[lints]
|
||
workspace = true
|
||
|
||
[dependencies]
|
||
# The framework facade with the crates the UI uses (owed by pdf-hub-w1, which owns this manifest).
|
||
craft = { workspace = true, features = ["ui", "ui-app","draw", "pages", "print", "review", "docpath", "font-catalog", "text", "text-font-picker", "text-find", "font-manager", "theme-store", "imaging", "window", "settings", "platform", "platform-clipboard", "atomic", "automation", "keymap", "menu", "quit", "web-host"] }
|
||
edit-session = { workspace = true }
|
||
craft-ui = { workspace = true }
|
||
# The menus: native on macOS, an egui bar elsewhere, from one definition (menus.rs).
|
||
craft-menu = { workspace = true }
|
||
craft-keymap = { workspace = true }
|
||
# Interface translations over the embedded craft-i18n catalogs (`build.rs`, `src/i18n.rs`).
|
||
craft-i18n = { workspace = true }
|
||
# Quit from the menus asks the window to close, so the unsaved-changes check runs; on macOS a window
|
||
# close also quits through `terminate:` (the Touch Bar crash, #1136).
|
||
craft-quit = { workspace = true, features = ["ui"] }
|
||
pdfcraft-fonts = { workspace = true }
|
||
pdfcraft-engine = { workspace = true }
|
||
pdfcraft-cos = { workspace = true }
|
||
pdfcraft-content = { workspace = true }
|
||
pdfcraft-ocr = { workspace = true }
|
||
pdfcraft-render = { workspace = true }
|
||
pdfcraft-model = { workspace = true }
|
||
pdfcraft-platform = { workspace = true }
|
||
egui = { workspace = true, features = ["bytemuck", "default_fonts", "monochrome_emoji_fonts"] }
|
||
egui_extras = { workspace = true }
|
||
# `glow` is always on: `eframe::App::on_exit` takes a GL context when that feature is enabled.
|
||
eframe = { workspace = true, features = ["default_fonts", "wgpu", "glow", "accesskit", "persistence", "links", "clipboard"] }
|
||
serde = { workspace = true }
|
||
serde_json = { workspace = true }
|
||
log = { workspace = true }
|
||
zeroize = { workspace = true }
|
||
# UTC/calendar display (combine modified-time stamp, the form date picker) goes through chrono
|
||
# (no hand-rolled calendar code); std-only, so it stays wasm-safe.
|
||
chrono = { workspace = true }
|
||
# Monotonic deadlines for work that runs in `logic` with no UI pass (native and web).
|
||
web-time = { workspace = true }
|
||
# Hands rendered rasters to egui as its pixels, without copying; already in the tree through egui and wgpu.
|
||
bytemuck = { version = "1", features = ["extern_crate_alloc"] }
|
||
|
||
rfd = { workspace = true }
|
||
craft-image-codecs = { workspace = true }
|
||
base64 = "0.23"
|
||
# Unicode bidi paragraph segmentation for right-to-left comment wrapping; egui 0.37's epaint owns
|
||
# display reordering. Already in the tree through egui’s epaint.
|
||
unicode-bidi = "0.3"
|
||
# Checks that an installed fallback font parses and has the glyphs, and reads the vertical metrics
|
||
# that put fallback faces on the interface's baseline (#1676); the same skrifa egui uses.
|
||
skrifa = "0.44"
|
||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||
# Help ▸ Check for updates: the facade's update crate builds only natively. The file service and the save flow
|
||
# (`dialogs`) sit on rfd's blocking panels and threads, so they are native too; the web saves through the
|
||
# platform's BrowserFiles (`editing/save.rs`).
|
||
craft = { workspace = true, features = ["update", "platform-clipboard-system", "dialogs"] }
|
||
# Control-channel tokens.
|
||
getrandom = "0.4"
|
||
# Create ▸ Clipboard (images; already in the tree through egui-winit).
|
||
arboard = { version = "3.6", default-features = false, features = ["image-data"] }
|
||
|
||
[target.'cfg(target_os = "macos")'.dependencies]
|
||
# Safe AppKit calls for drag coordinates and repairing an existing per-file PDFCraft binding.
|
||
# The Objective-C wrappers and block support are already in the tree through arboard and rfd.
|
||
objc2 = "0.6"
|
||
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSEvent", "NSScreen", "NSWorkspace", "block2"] }
|
||
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSArray", "NSGeometry", "NSBundle", "NSURL", "NSString", "NSError"] }
|
||
block2 = "0.6"
|
||
plist = "1.10"
|
||
# Query and read Finder association attributes without following symbolic links.
|
||
rustix = { version = "1.1.6", features = ["fs"] }
|
||
|
||
[target.'cfg(windows)'.dependencies]
|
||
# Auto interface language: the Windows display language, without starting a process.
|
||
sys-locale = "0.3"
|
||
# Region ▸ Measurement system for the default Units, read from the registry without starting reg.exe;
|
||
# where the pointer is while files are dragged over the window (winit doesn't say).
|
||
winsafe = { version = "0.0.29", default-features = false, features = ["advapi", "user"] }
|
||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||
rfd = { workspace = true, features = ["file-handle-inner"] }
|
||
wasm-bindgen-futures = "0.4"
|
||
wasm-bindgen = "0.2"
|
||
js-sys = "0.3"
|
||
web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "Url", "HtmlIFrameElement", "HtmlImageElement", "HtmlCollection", "Node", "EventTarget", "Navigator", "RequestCache", "RequestInit", "Response", "Worker", "WorkerOptions", "WorkerType", "MessageEvent"] }
|
||
|
||
[dev-dependencies]
|
||
# The fixture and suite runner the component trials drive the app's components with.
|
||
craft = { workspace = true, features = ["ui-testing", "zip"] }
|
||
pdfcraft-xfa = { workspace = true }
|
||
# A content stream that inflates past the renderer's limits, for the cut-content notice test.
|
||
flate2 = { workspace = true }
|
||
egui_kittest = { workspace = true, features = ["eframe", "wgpu"] }
|
||
# Tests draw PdfCraft text without a system provider: the bundled and monochrome emoji faces must
|
||
# be enabled on the test graph itself (a dependency's dev-features do not propagate).
|
||
egui = { workspace = true, features = ["default_fonts", "monochrome_emoji_fonts"] }
|
||
image = { version = "0.25", default-features = false }
|
||
# Glyph-coverage test of the interface fonts; the same skrifa pdfcraft-fonts already uses.
|
||
skrifa = "0.44"
|
||
proptest = { workspace = true }
|
||
|
||
[build-dependencies]
|
||
serde_json = { workspace = true }
|
||
toml = "1"
|
||
|
||
[target.'cfg(target_os = "macos")'.dev-dependencies]
|
||
# Only synthetic attribute fixtures use xattr; product reads/writes use rustix.
|
||
xattr = "1.6"
|
||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
||
# `Updater::ready_for_tests` (through the facade): an updater whose update has installed, for the
|
||
# Restart to Update screen tests.
|
||
craft-update = { workspace = true, features = ["screen-testing"] }
|
||
|
||
[target.'cfg(target_os = "linux")'.dev-dependencies]
|
||
tempfile = "3.27"
|