mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 20:25:02 +00:00
332 lines
16 KiB
TOML
332 lines
16 KiB
TOML
[workspace]
|
||
resolver = "3"
|
||
members = ["crates/*"]
|
||
exclude = ["vendor/krilla", "vendor/hayro", "vendor/hayro-interpret", "vendor/hayro-syntax", "vendor/hayro-jbig2", "vendor/hayro-cmap", "vendor/hayro-postscript", "vendor/linesweeper"]
|
||
|
||
[workspace.package]
|
||
version = "0.1.0"
|
||
edition = "2024"
|
||
license = "MIT OR Apache-2.0"
|
||
rust-version = "1.95"
|
||
repository = "https://github.com/storytold/craft-libs"
|
||
|
||
[workspace.dependencies]
|
||
craft-shx = { path = "crates/shx" }
|
||
craft-http-url = { path = "crates/http-url" }
|
||
craft-usd = { path = "crates/usd" }
|
||
craft-smime = { path = "crates/smime" }
|
||
craft-ber = { path = "crates/ber" }
|
||
craft-proto = { path = "crates/proto" }
|
||
craft-render-parity = { path = "crates/render-parity" }
|
||
acadrust = "=0.6.6"
|
||
log = "0.4"
|
||
# internal: add each crate here as `craft-<name> = { path = "crates/<name>" }`
|
||
craft-plist = { path = "crates/plist" }
|
||
craft-platform = { path = "crates/platform" }
|
||
craft-aep = { path = "crates/aep" }
|
||
craft-affinity = { path = "crates/affinity" }
|
||
craft-win32 = { path = "crates/win32" }
|
||
craft-ai-core = { path = "crates/ai-core" }
|
||
craft-anicraft-format = { path = "crates/anicraft-format" }
|
||
craft-pdf = { path = "crates/pdf", version = "=0.1.0" }
|
||
craft-pe = { path = "crates/pe" }
|
||
craft-ps = { path = "crates/ps", version = "=0.1.0" }
|
||
craft-pdn = { path = "crates/pdn" }
|
||
craft-plate-test = { path = "crates/plate-test" }
|
||
pdf-writer = "0.15"
|
||
miniz_oxide = "0.8"
|
||
weezl = "0.1"
|
||
skrifa = "0.47"
|
||
krilla = { version = "=0.8.2", default-features = false, features = ["raster-images"] }
|
||
hayro = { version = "=0.7.1", default-features = false }
|
||
hayro-interpret = { version = "=0.7.0", default-features = false, features = ["embed-fonts", "embed-cmaps"] }
|
||
hayro-syntax = { version = "=0.7.2", default-features = false, features = ["std"] }
|
||
bytemuck = "1"
|
||
kurbo = "0.13"
|
||
thiserror = "2"
|
||
craft-gzip = { path = "crates/gzip" }
|
||
craft-gridcraft-format = { path = "crates/gridcraft-format" }
|
||
craft-aaf = { path = "crates/aaf" }
|
||
craft-behavior = { path = "crates/behavior" }
|
||
craft-atomic = { path = "crates/atomic" }
|
||
craft-captions = { path = "crates/captions" }
|
||
craft-cfb = { path = "crates/cfb" }
|
||
craft-codepage = { path = "crates/codepage" }
|
||
craft-cms = { path = "crates/cms" }
|
||
craft-crs = { path = "crates/crs" }
|
||
craft-crw = { path = "crates/crw" }
|
||
craft-csv = { path = "crates/csv" }
|
||
craft-dav = { path = "crates/dav" }
|
||
craft-automation = { path = "crates/automation" }
|
||
craft-browse = { path = "crates/browse" }
|
||
craft = { path = "crates/craft" }
|
||
craft-color = { path = "crates/color" }
|
||
craft-design-lint = { path = "crates/design-lint" }
|
||
craft-dialogs = { path = "crates/dialogs" }
|
||
craft-doc-binary = { path = "crates/doc-binary" }
|
||
craft-docx = { path = "crates/docx" }
|
||
craft-document-bundle = { path = "crates/document-bundle" }
|
||
craft-mcmat = { path = "crates/mcmat" }
|
||
craft-deckcraft-format = { path = "crates/deckcraft-format" }
|
||
craft-designcraft-format = { path = "crates/designcraft-format" }
|
||
craft-dxf = { path = "crates/dxf" }
|
||
craft-drawingml = { path = "crates/drawingml" }
|
||
craft-eps = { path = "crates/eps" }
|
||
craft-elf = { path = "crates/elf" }
|
||
craft-file-formats = { path = "crates/file-formats" }
|
||
craft-file-import = { path = "crates/file-import" }
|
||
vectorcraft-doc = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
||
vectorcraft-eps = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
||
vectorcraft-geom = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
||
vectorcraft-pathops = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
||
# The ArtCraft Launcher's list of apps AI agents may use, shared with the launcher and the MCP gateway.
|
||
craft-ai-agents = { git = "https://github.com/storytold/craft-ai-integrations", rev = "35e0352666a117407d62230a6c6c2366f3e21a3b" }
|
||
craft-doc = { path = "crates/doc" }
|
||
craft-docpath = { path = "crates/docpath" }
|
||
craft-dpx = { path = "crates/dpx" }
|
||
craft-draw = { path = "crates/draw" }
|
||
craft-dwg = { path = "crates/dwg" }
|
||
craft-fcproj-format = { path = "crates/fcproj-format" }
|
||
craft-ecproj-format = { path = "crates/ecproj-format" }
|
||
craft-figma-rest = { path = "crates/figma-rest" }
|
||
craft-exr = { path = "crates/exr" }
|
||
craft-flags = { path = "crates/flags" }
|
||
craft-font-catalog = { path = "crates/font-catalog" }
|
||
craft-font-manager = { path = "crates/font-manager" }
|
||
craft-font-store = { path = "crates/font-store" }
|
||
craft-gainmap = { path = "crates/gainmap" }
|
||
craft-flow = { path = "crates/flow" }
|
||
craft-gcode = { path = "crates/gcode" }
|
||
craft-gif = { path = "crates/gif" }
|
||
craft-hdr = { path = "crates/hdr" }
|
||
craft-mesh = { path = "crates/mesh" }
|
||
craft-html = { path = "crates/html" }
|
||
craft-heif = { path = "crates/heif" }
|
||
craft-fig = { path = "crates/fig" }
|
||
craft-fonts-build = { path = "crates/fonts-build" }
|
||
craft-font-subset = { path = "crates/font-subset" }
|
||
# The HarfBuzz subsetter from storytold's HarfBuzz fork (branch rust-subset-15.0.0: HarfBuzz 15.0.0 plus rust/harfbuzz-subset-sys).
|
||
harfbuzz-subset-sys = { git = "https://github.com/storytold/harfbuzz.git", rev = "2659dd807f9a48f75604ee7c76cb709f7b70b950" }
|
||
craft-host = { path = "crates/host" }
|
||
craft-i18n = { path = "crates/i18n" }
|
||
craft-idml = { path = "crates/idml" }
|
||
craft-indd = { path = "crates/indd" }
|
||
craft-jmap = { path = "crates/jmap" }
|
||
craft-ical = { path = "crates/ical" }
|
||
craft-imaging = { path = "crates/imaging" }
|
||
craft-jpeg = { path = "crates/jpeg" }
|
||
craft-control-protocol = { path = "crates/control-protocol" }
|
||
craft-jsonrpc = { path = "crates/jsonrpc" }
|
||
craft-mcp = { path = "crates/mcp" }
|
||
craft-jxl = { path = "crates/jxl" }
|
||
craft-kiwi = { path = "crates/kiwi" }
|
||
craft-keymap = { path = "crates/keymap" }
|
||
craft-assuan = { path = "crates/assuan" }
|
||
craft-kra = { path = "crates/kra" }
|
||
craft-layers = { path = "crates/layers" }
|
||
craft-audio = { path = "crates/audio" }
|
||
craft-latex = { path = "crates/latex" }
|
||
craft-markdown = { path = "crates/markdown" }
|
||
craft-macho = { path = "crates/macho" }
|
||
craft-math = { path = "crates/math" }
|
||
# No default features: craft-audio turns on the craft-media modules each of its features needs.
|
||
craft-media = { path = "crates/media", default-features = false }
|
||
craft-materialx = { path = "crates/materialx" }
|
||
craft-media-testkit = { path = "crates/media-testkit" }
|
||
craft-midi = { path = "crates/midi" }
|
||
craft-sf2 = { path = "crates/sf2" }
|
||
craft-mime = { path = "crates/mime" }
|
||
craft-odf = { path = "crates/odf" }
|
||
craft-ods = { path = "crates/ods" }
|
||
craft-prc = { path = "crates/prc" }
|
||
craft-lottie = { path = "crates/lottie" }
|
||
craft-menu = { path = "crates/menu" }
|
||
craft-metafile = { path = "crates/metafile" }
|
||
craft-offcrypto = { path = "crates/offcrypto" }
|
||
craft-opc = { path = "crates/opc" }
|
||
craft-openpgp = { path = "crates/openpgp" }
|
||
craft-ora = { path = "crates/ora" }
|
||
craft-pptx = { path = "crates/pptx" }
|
||
craft-penpot = { path = "crates/penpot" }
|
||
craft-pcraft-format = { path = "crates/pcraft-format" }
|
||
craft-pcraft-bundle = { path = "crates/pcraft-bundle" }
|
||
craft-pkcs7 = { path = "crates/pkcs7" }
|
||
craft-plotter = { path = "crates/plotter" }
|
||
craft-prepress = { path = "crates/prepress" }
|
||
craft-pages = { path = "crates/pages" }
|
||
craft-print = { path = "crates/print" }
|
||
craft-proof = { path = "crates/proof" }
|
||
craft-raster-codecs = { path = "crates/raster-codecs" }
|
||
craft-image-codecs = { path = "crates/image-codecs" }
|
||
craft-psd = { path = "crates/psd" }
|
||
craft-pst = { path = "crates/pst" }
|
||
craft-quit = { path = "crates/quit" }
|
||
craft-rtf = { path = "crates/rtf" }
|
||
craft-raw = { path = "crates/raw" }
|
||
craft-sheet = { path = "crates/sheet" }
|
||
craft-sketch = { path = "crates/sketch" }
|
||
craft-review = { path = "crates/review" }
|
||
craft-settings = { path = "crates/settings" }
|
||
craft-figcraft-format = { path = "crates/figcraft-format" }
|
||
craft-scraft-format = { path = "crates/scraft-format" }
|
||
craft-time = { path = "crates/time" }
|
||
craft-silhouette-studio = { path = "crates/silhouette-studio" }
|
||
craft-svg = { path = "crates/svg" }
|
||
craft-stencilcraft-format = { path = "crates/stencilcraft-format" }
|
||
craft-stencilcraft-document = { path = "crates/stencilcraft-document" }
|
||
craft-svg-paths = { path = "crates/svg-paths" }
|
||
craft-stream-codecs = { path = "crates/stream-codecs" }
|
||
craft-text = { path = "crates/text" }
|
||
craft-tcraft = { path = "crates/tcraft" }
|
||
craft-texture = { path = "crates/texture" }
|
||
craft-tga = { path = "crates/tga" }
|
||
craft-timeline = { path = "crates/timeline" }
|
||
craft-tiff = { path = "crates/tiff" }
|
||
craft-metadata = { path = "crates/metadata" }
|
||
craft-table = { path = "crates/table" }
|
||
craft-theme = { path = "crates/theme" }
|
||
craft-theme-store = { path = "crates/theme-store" }
|
||
craft-ui = { path = "crates/ui" }
|
||
craft-ui-canvas = { path = "crates/ui-canvas" }
|
||
craft-ui-contract = { path = "crates/ui-contract" }
|
||
craft-ui-panels = { path = "crates/ui-panels" }
|
||
craft-ui-patterns = { path = "crates/ui-patterns" }
|
||
craft-ui-shell = { path = "crates/ui-shell" }
|
||
craft-ui-test-kit = { path = "crates/ui-test-kit" }
|
||
craft-ui-widgets = { path = "crates/ui-widgets" }
|
||
craft-ui-macros = { path = "crates/ui-macros" }
|
||
craft-update = { path = "crates/update" }
|
||
craft-vcard = { path = "crates/vcard" }
|
||
craft-vectorcraft-format = { path = "crates/vectorcraft-format" }
|
||
craft-vectordrawable = { path = "crates/vectordrawable" }
|
||
craft-xls = { path = "crates/xls" }
|
||
craft-xfl = { path = "crates/xfl" }
|
||
craft-wordmodel = { path = "crates/wordmodel" }
|
||
craft-xlsx = { path = "crates/xlsx" }
|
||
indd = { git = "https://github.com/storytold/indd-utils", rev = "7f3060e5bce78d21ea70e0d5eacb96edce15dfbe" }
|
||
craft-xcf = { path = "crates/xcf" }
|
||
craft-xml = { path = "crates/xml" }
|
||
craft-zip = { path = "crates/zip" }
|
||
craft-y4m = { path = "crates/y4m" }
|
||
craft-sniff = { path = "crates/sniff" }
|
||
craft-tar = { path = "crates/tar" }
|
||
craft-format = { path = "crates/format" }
|
||
craft-mcp-server = { path = "crates/mcp-server" }
|
||
craft-epub = { path = "crates/epub" }
|
||
craft-ews = { path = "crates/ews" }
|
||
craft-video = { path = "crates/video" }
|
||
craft-web-api = { path = "crates/web-api" }
|
||
craft-window = { path = "crates/window" }
|
||
# egui's colour types alone, for crates that convert to and from them without egui.
|
||
ecolor = { version = "0.37", default-features = false }
|
||
craft-web-host = { path = "crates/web-host" }
|
||
craft-webp = { path = "crates/webp" }
|
||
egui = { version = "0.37", default-features = false }
|
||
bitflags = "2"
|
||
md5 = { package = "md-5", version = "0.10", default-features = false }
|
||
jxl-oxide = { version = "0.12", default-features = false }
|
||
jixel = "=0.3.4"
|
||
rayon = "1"
|
||
smallvec = "1"
|
||
serde = { version = "1", features = ["derive"] }
|
||
serde_json = "1"
|
||
proptest = "1"
|
||
# Character sets of the WHATWG Encoding Standard (craft-mime). (Apache-2.0 OR MIT) AND BSD-3-Clause.
|
||
encoding_rs = "0.8"
|
||
# 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"] }
|
||
|
||
[workspace.lints.rust]
|
||
unsafe_code = "forbid"
|
||
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(craft_pdf_unicode_fixtures)"] }
|
||
|
||
[workspace.lints.clippy]
|
||
cognitive_complexity = "deny"
|
||
too_many_arguments = "deny"
|
||
wildcard_imports = "deny"
|
||
dbg_macro = "warn"
|
||
todo = "warn"
|
||
|
||
[patch.crates-io]
|
||
krilla = { path = "vendor/krilla" }
|
||
|
||
hayro = { path = "vendor/hayro" }
|
||
hayro-interpret = { path = "vendor/hayro-interpret" }
|
||
hayro-syntax = { path = "vendor/hayro-syntax" }
|
||
hayro-jbig2 = { path = "vendor/hayro-jbig2" }
|
||
hayro-cmap = { path = "vendor/hayro-cmap" }
|
||
hayro-postscript = { path = "vendor/hayro-postscript" }
|
||
linesweeper = { path = "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" }
|
||
|
||
# symphonia's FLAC decoder restores LPC samples as `residual + (prediction as i32)`. In a valid
|
||
# 32-bit stream the prediction can leave the i32 range while the sum does not, so a debug build
|
||
# panics where a release build wraps to the right sample. Apps that decode 32-bit FLAC through
|
||
# craft-audio's `decode` need the same override in their own workspace.
|
||
[profile.dev.package.symphonia-bundle-flac]
|
||
overflow-checks = false
|
||
|
||
# Codec hot loops: the oracle and conformance tests of a debug build take minutes below opt-level 3.
|
||
[profile.dev.package.craft-video]
|
||
opt-level = 3
|
||
|
||
# The object-stream parser follows nesting 384 levels deep: unoptimised, its frames overflow the
|
||
# 2 MiB stack of a test thread. The apps this reader came from build their crates at this level.
|
||
[profile.dev.package.craft-affinity]
|
||
opt-level = 1
|
||
# Dev and test builds never run LTO: with `lto = false` (cargo's default) rustc runs thin-local LTO across every
|
||
# optimised crate's 256 codegen units on each rebuild, which multiplied the incremental rebuild of the framework
|
||
# crates. Off, a one-line edit re-optimises only the changed units.
|
||
[profile.dev]
|
||
lto = "off"
|
||
|
||
# Dependencies (egui, rendering, text shaping, syn) run optimised in dev and test builds, so
|
||
# screen tests, design-lint and the debug gallery run at a usable speed. They build once per
|
||
# target dir; the workspace's own crates stay unoptimised and incremental.
|
||
[profile.dev.package."*"]
|
||
opt-level = 2
|
||
|
||
# craft-theme's colour maths and the behaviour cores, which run in every screen-test frame, and craft-proof, whose
|
||
# tests parse and check whole dictionaries, build at opt-level 1: unoptimised, they made the test binaries several
|
||
# times slower, and they are rarely edited. Every other workspace crate, the framework runtime included, stays at
|
||
# opt-level 0: an edit to craft-ui-contract (65k lines) rebuilt for 35-90 s at opt-level 1 and rebuilds in seconds at 0,
|
||
# and the runtime's hot pipeline is generic, so it compiles in the dependants at their opt-level anyway.
|
||
[profile.dev.package.craft-theme]
|
||
opt-level = 1
|
||
[profile.dev.package.craft-behavior]
|
||
opt-level = 1
|
||
[profile.dev.package.craft-proof]
|
||
opt-level = 1
|
||
|
||
# The gallery on the Mac: optimised like release, but the workspace's crates build in many small
|
||
# units, incrementally, so a change to craft-ui rebuilds in minutes. Dependencies keep release
|
||
# settings and build once in target/gallery. `cargo run --profile gallery -p craft-ui-gallery`.
|
||
[profile.gallery]
|
||
inherits = "release"
|
||
incremental = true
|
||
codegen-units = 256
|
||
opt-level = 1
|
||
|
||
# The workspace's own crates build at opt-level 1 in the gallery profile: rustc shares generic instantiations across
|
||
# crates at opt-level 0, 1, s and z only, so at 1 a change in a framework crate no longer makes every dependant
|
||
# re-generate its own copies of that crate's generics and inlined functions (a one-line edit rebuilt the gallery in
|
||
# 25 s at opt-level 1 and 69–84 s at 3). `package."*"` matches the dependencies only: they keep release optimisation,
|
||
# so this changes nothing in their settings.
|
||
[profile.gallery.package."*"]
|
||
codegen-units = 16
|
||
opt-level = 3
|