[workspace] resolver = "3" members = ["crates/*", "apps/*", "xtask"] exclude = ["vendor"] default-members = ["crates/*", "apps/pdfcraft", "apps/pdfcraft-cli", "xtask"] [workspace.package] version = "0.21.1" edition = "2024" license = "MIT OR Apache-2.0" rust-version = "1.95" repository = "https://github.com/storytold/pdfcraft" [workspace.dependencies] # The framework facade: every framework crate is reached through it (contract head); its features pick the crates. craft = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717", default-features = false } craft-markdown = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # Small, revision-bound UI drafts; the existing engine remains the owner of PDF edits/history. edit-session = { path = "vendor/edit-session", version = "=0.1.0-alpha.2" } # Shared frontend components; engines remain independent of egui. craft-ui = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # Quit the macOS way (#1136): ⌘Q asks about unsaved changes, and closing quits through `terminate:`. craft-quit = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # One menu definition for the native macOS menu bar and the in-window bar elsewhere. craft-menu = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-keymap = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717", default-features = false } # Interface translations: lookup, fallback, CLDR plurals and language names over the craft-i18n # catalogs that `crates/ui-egui/build.rs` embeds from `CRAFT_I18N_DIR` (storytold/craft-i18n, at # the commit in `craft-i18n.rev`). Already in the tree through craft-ui. craft-i18n = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # Shared system spooler; document composition remains in pdfcraft-print. craft-print = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # ICC transforms for app-managed print colour; at craft-print's commit, so one craft-libs checkout. craft-cms = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-zip = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # Whether a path stored in a document may be opened (GoToR link targets). craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # The installed-font catalog the engine reads faces from (Edit ▸ Add text, font embedding). craft-font-catalog = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717", default-features = false } # The craft-fonts manifest parser and `EmbeddedFace`, the face table the interface font stack takes; already in the # tree through craft-ui. craft-fonts-build = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # craft-update: app-specific pretend versions apply to startup and manual checks. craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717", features = ["ui"] } craft-pdf = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717", features = ["cos", "crypt", "filters"] } # The writer the RTF export maps onto (storytold/craft-libs#793), at storytold/craft-libs#1467: # its font and colour lookups take constant time, as PdfCraft's own writer did. craft-rtf = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # Shared Base64 encoder; use the existing RTF revision to reuse its codepage dependency. craft-mime = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-csv = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-xml = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-image-codecs = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-tiff = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-jpeg = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-docx = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-pptx = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-drawingml = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-opc = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } # internal pdfcraft-geom = { path = "crates/geom", version = "0.21.0" } pdfcraft-filters = { path = "crates/filters", version = "0.21.0" } pdfcraft-cos = { path = "crates/cos", version = "0.21.0" } pdfcraft-crypt = { path = "crates/crypt", version = "0.21.0" } pdfcraft-organize = { path = "crates/organize", version = "0.21.0" } pdfcraft-measure = { path = "crates/measure", version = "0.21.0" } pdfcraft-annot = { path = "crates/annot", version = "0.21.0" } pdfcraft-audit = { path = "crates/audit", version = "0.21.0" } pdfcraft-fonts = { path = "crates/fonts", version = "0.21.0" } pdfcraft-model = { path = "crates/model", version = "0.21.0" } pdfcraft-content = { path = "crates/content", version = "0.21.0" } pdfcraft-redact = { path = "crates/redact", version = "0.21.0" } pdfcraft-print = { path = "crates/print", version = "0.21.0" } pdfcraft-xfdf = { path = "crates/xfdf", version = "0.21.0" } pdfcraft-sign = { path = "crates/sign", version = "0.21.0" } pdfcraft-optimize = { path = "crates/optimize", version = "0.21.0" } pdfcraft-a11y = { path = "crates/a11y", version = "0.21.0" } pdfcraft-oracle = { path = "crates/oracle", version = "0.21.0" } pdfcraft-testkit = { path = "crates/testkit", version = "0.21.0" } pdfcraft-ocr = { path = "crates/ocr", version = "0.21.0" } pdfcraft-js = { path = "crates/js", version = "0.21.0" } pdfcraft-compare = { path = "crates/compare", version = "0.21.0" } pdfcraft-preflight = { path = "crates/preflight", version = "0.21.0" } pdfcraft-export = { path = "crates/export", version = "0.21.0" } pdfcraft-edit = { path = "crates/edit", version = "0.21.0" } pdfcraft-create = { path = "crates/create", version = "0.21.0" } pdfcraft-forms = { path = "crates/forms", version = "0.21.0" } pdfcraft-xfa = { path = "crates/xfa", version = "0.21.0" } pdfcraft-render = { path = "crates/render", version = "0.21.0" } pdfcraft-engine = { path = "crates/engine", version = "0.21.0" } pdfcraft-platform = { path = "crates/platform", version = "0.21.0" } pdfcraft-ui-egui = { path = "crates/ui-egui", version = "0.21.0" } pdfcraft-automation = { path = "crates/automation", version = "0.21.0", default-features = false } pdfcraft-prc = { package = "craft-prc", git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } craft-prc = { git = "https://github.com/storytold/craft-libs", version = "0.1.0", rev = "527c2750e37fb8bf576dc9a9e07ffc60b9d63717" } pdfcraft-prc-render = { path = "crates/prc-render", version = "0.21.0" } # pdf hayro = "0.7.1" hayro-syntax = "0.7.2" lopdf = "0.45" # zlib-rs: miniz_oxide took about 1.7 µs for every fixed-Huffman block, empty or not # (`pdfcraft_filters::FLATE_READ_WORK`). Other dependencies still build flate2's default # miniz_oxide backend; flate2 prefers zlib-rs when both are built, as the Windows build already did # through craft-update. `flate::tests::a_copy_from_before_the_start_is_damage` shows which runs. flate2 = { version = "1.1", default-features = false, features = ["zlib-rs"] } weezl = "0.2" # CCITT Group 4 encoding (pdfcraft-filters); already in the tree through tiff. fax = "0.2.7" # Independent CCITT and JBIG2 codecs, already in the tree through hayro. hayro-ccitt = "0.3" hayro-jbig2 = "0.3" # foundation thiserror = "2" zeroize = "1" # Linear-time matching (no backtracking) for caller-supplied redaction patterns. `perf-dfa` gives # the lazy-DFA cache that `RegexBuilder::dfa_size_limit` bounds (the limit is inert without it). regex = { version = "1", default-features = false, features = ["std", "unicode", "perf-dfa"] } serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" log = "0.4" kurbo = "0.13" # All date/time conversion goes through chrono (no hand-rolled calendar code beyond the 400-year range extension; AGENTS.md). chrono = { version = "0.4.45", default-features = false, features = ["std"] } # testing proptest = "1" # ui egui = "0.37" egui_extras = { version = "0.37", default-features = false, features = ["svg"] } eframe = { version = "0.37", default-features = false } egui_kittest = "0.37" rfd = "0.17" # Monotonic time for logic-only work on native and web (`App::logic` runs without a UI pass). web-time = "1.1" [workspace.lints.rust] unsafe_code = "forbid" [workspace.lints.clippy] cognitive_complexity = "deny" too_many_arguments = "deny" wildcard_imports = "deny" dbg_macro = "warn" todo = "warn" # `"*"` matches every non-workspace package: crates.io dependencies and the # vendored crates under `vendor/` (excluded from the workspace). Dependencies # carry no debug info and our own crates only line tables: backtraces and # panics still show file and line, while test binaries and the target dir stay # small (each UI test binary had a 500-600 MB PDB on Windows, #454). [profile.dev.package."*"] opt-level = 2 debug = false [profile.dev] opt-level = 1 debug = "line-tables-only" [profile.low-disk] inherits = "dev" incremental = false [profile.release] lto = "thin" codegen-units = 1 # Vendored, patched third-party crates (see vendor/README.md). Each patch is meant to go upstream. [workspace.metadata.cl] selection = ["pdfcraft", "pdfcraft-ui-egui", "pdfcraft-web"] tracked = ["egui", "eframe"] unset_env = ["CRAFT_FONTS_DIR", "CRAFT_FONTS_REQUIRED", "CRAFT_I18N_DIR", "CRAFT_I18N_REQUIRED", "PDFCRAFT_REQUIRE_WINRES"] # BEGIN port-kit framework patch [patch.crates-io] krilla = { path = "../craft-libs/vendor/krilla" } hayro = { path = "vendor/hayro" } hayro-interpret = { path = "vendor/hayro-interpret" } hayro-syntax = { path = "vendor/hayro-syntax" } hayro-jbig2 = { path = "../craft-libs/vendor/hayro-jbig2" } hayro-cmap = { path = "vendor/hayro-cmap" } hayro-postscript = { path = "vendor/hayro-postscript" } linesweeper = { path = "../craft-libs/vendor/linesweeper" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } emath = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } epaint = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui-winit = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui_glow = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui_extras = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui_system_font_provider = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } eframe = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui_demo_lib = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } egui_inspection = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" } lopdf = { path = "vendor/lopdf" } vello_common = { path = "vendor/vello_common" } vello_cpu = { path = "vendor/vello_cpu" } [patch."https://github.com/storytold/craft-libs"] craft = { path = "../craft-libs/crates/craft" } craft-cms = { path = "../craft-libs/crates/cms" } craft-codepage = { path = "../craft-libs/crates/codepage" } craft-csv = { path = "../craft-libs/crates/csv" } craft-docpath = { path = "../craft-libs/crates/docpath" } craft-flow = { path = "../craft-libs/crates/flow" } craft-fonts-build = { path = "../craft-libs/crates/fonts-build" } craft-html = { path = "../craft-libs/crates/html" } craft-i18n = { path = "../craft-libs/crates/i18n" } craft-image-codecs = { path = "../craft-libs/crates/image-codecs" } craft-jpeg = { path = "../craft-libs/crates/jpeg" } craft-keymap = { path = "../craft-libs/crates/keymap" } craft-markdown = { path = "../craft-libs/crates/markdown" } craft-math = { path = "../craft-libs/crates/math" } craft-menu = { path = "../craft-libs/crates/menu" } craft-mime = { path = "../craft-libs/crates/mime" } craft-opc = { path = "../craft-libs/crates/opc" } craft-pdf = { path = "../craft-libs/crates/pdf" } craft-pkcs7 = { path = "../craft-libs/crates/pkcs7" } craft-prc = { path = "../craft-libs/crates/prc" } craft-print = { path = "../craft-libs/crates/print" } craft-quit = { path = "../craft-libs/crates/quit" } craft-rtf = { path = "../craft-libs/crates/rtf" } craft-stream-codecs = { path = "../craft-libs/crates/stream-codecs" } craft-tiff = { path = "../craft-libs/crates/tiff" } craft-ui = { path = "../craft-libs/crates/ui" } craft-update = { path = "../craft-libs/crates/update" } craft-web-api = { path = "../craft-libs/crates/web-api" } craft-web-host = { path = "../craft-libs/crates/web-host" } craft-wordmodel = { path = "../craft-libs/crates/wordmodel" } craft-xml = { path = "../craft-libs/crates/xml" } craft-zip = { path = "../craft-libs/crates/zip" } # END port-kit framework patch