mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-11 16:36:13 -06:00
The UI theme include_bytes!'d ShipporiMincho-Regular.ttf, which printcraft-fonts already embeds as SHIPPORI_MINCHO for Japanese text in PDFs, so the app carried two copies. ui-egui now depends on printcraft-fonts (layer 2, wasm-clean) and uses its static. The desktop app binary drops from 85.8 MB to 77.5 MB (debug build; one copy of the font left, counted). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.4 KiB
TOML
43 lines
1.4 KiB
TOML
[package]
|
|
name = "printcraft-ui-egui"
|
|
description = "The egui shell of PrintCraft"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
printcraft-fonts = { workspace = true }
|
|
printcraft-engine = { workspace = true }
|
|
printcraft-render = { workspace = true }
|
|
egui = { workspace = true }
|
|
egui_extras = { workspace = true }
|
|
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit", "persistence", "links"] }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
rfd = { workspace = true }
|
|
png = "0.18"
|
|
base64 = "0.22"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# 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_arch = "wasm32")'.dependencies]
|
|
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"] }
|
|
|
|
[dev-dependencies]
|
|
printcraft-cos = { workspace = true }
|
|
printcraft-model = { workspace = true }
|
|
egui_kittest = { workspace = true, features = ["eframe", "wgpu"] }
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|